Hi, I have another question related to this question.<br><br>Is there a way to limit the coordinates allowed to span the map? I want to limit people to only be able to drag the map within a certain geographical area?<br><br>Thanks, S.D.<br><br><b><i>Alvin Clay <orionkamap@yahoo.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Thanks. I got the extents working, but still don't have the icon issue sorted out.<br><br>I can't find the xmlOverlayUseCanvas variable, where is that?<br><br>- Alvin<br><br><br><br><b><i>Pg <pg.navone@gmail.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> 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"><div> __________________________________________________<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> </div></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> </blockquote><br><div> </div><hr size="1">Do you Yahoo!?<br> Everyone is raving about the <a href="http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/handraisers"> all-new Yahoo! Mail Beta.</a><div> </div><hr size="1">Yahoo! Music Unlimited - Access over 1 million songs. <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/%20">Try it free.</a> _______________________________________________<br>ka-Map-users mailing list<br>ka-Map-users@lists.maptools.org<br>http://lists.maptools.org/mailman/listinfo/ka-map-users<br></blockquote><br>