In order to properly initialize kaXmlOverlay you should wait for the KAMAP_MAP_INITIALIZED event. So register an handler for that event <br><br>myKaMap.registerForEvent( KAMAP_MAP_INITIALIZED, null, mapInitializedHandler );
<br><br>and move the kaXmlOverlay init in the mapInitializedHandler() function.<br>(See the doc in the source).<br><br><br>For the bad icon rendering, if you are using the CVS version, the default behaviour is to render icons with <canvas> or VML, in order to support rotation.
<br><br>To render icons in the old traditional way set the variable<br><br> xmlOverlayUseCanvas = false;<br><br>before creating the overlay.<br><br>If this helps, please let me know which browser you're using.<br><br> -Pg
<br><br><div><span class="gmail_quote">2006/7/26, Alvin Clay <<a href="mailto:orionkamap@yahoo.com">orionkamap@yahoo.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>What do I need to set to have the map start at a certain center point and zoom level, I tried this but only got blank maps and zoom was all the way at 0.<br><br> var map = getQueryParam('map');<br> var extents = [-75,40,8];
<br> var cps = getQueryParam('cps');<br> <br> myKaMap = new kaMap( 'viewport' );<br> var kaNav = new kaNavigator( myKaMap );<br> kaNav.activate();<br> myKaZoomer = new kaZoomer(myKaMap); <br> drawPage();
<br> myKaMap.initialize( map, extents, cps );<br> myXmlOverlay = new kaXmlOverlay( myKaMap, 250 );<br> myXmlOverlay.loadXml('points.xml');<br><br>...........................<br><br><br>Also, I have a problem with the icon I created for overlays.
<br><br>This is the icon graphic:<br><br><a href="http://209.200.237.68/images/dot.gif" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://209.200.237.68/images/dot.gif</a><br><br>This is
what is looks like on the map at all zoom levels:<br><br><a href="http://209.200.237.69/images/dot_mistake.gif" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://209.200.237.69/images/dot_mistake.gif
</a><br><br>This is the point info in the xml file:<br><br> <point x="-74.9" y="39.993" id="p3" redraw="true"><br> <label boxcolor="#000000" h="10" w="50" font="Arial" color="#FFFFFF" px="5" py="5">Point 3</label>
<br> <icon src="/images/dot.gif" h="19" w="19" /><br> </point><br></div><div><span class="ad"><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around
<br><a href="http://mail.yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.yahoo.com</a>
</p></span></div><br>_______________________________________________<br>ka-Map-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br><br><br></blockquote>
</div><br>