xmlOverlayUseCanvas is a (dirty) global variable defined in kaXmlOverlay.js<br><br>After the directive <br><br><script type="text/javascript" src="XMLOverlay/kaXmlOverlay.js"></script><br><br>
this variable should be globally defined and initialized to "true".<br><br>The use of this variable is described in the documentation of kaXmlOverlay that is in the JavaScript file, and is mirrored and beautified in
<br><br><a href="http://ka-map.ominiverdi.org/wiki/index.php/Overlay_API_Reference">http://ka-map.ominiverdi.org/wiki/index.php/Overlay_API_Reference</a><br><br>If you can't find the xmlOverlayUseCanvas variable, probably you are using an old version of kaXmlOverlay. If this is the case, so my hint is not usefull for you.
<br><br>-Pg<br><br><div><span class="gmail_quote">2006/7/27, 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>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</div><div><span class="e" id="q_10cb1f174589785d_1">
<br><br><br><br><b><i>Pg <<a href="mailto:pg.navone@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pg.navone@gmail.com</a>></i></b> wrote:<blockquote 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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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><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 href="mailto:ka-Map-users@lists.maptools.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ka-Map-users@lists.maptools.org </a><br><a href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br><br><br></blockquote> </div><br> </blockquote><br></span></div><div><span class="ad"><p>
                </p><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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
all-new Yahoo! Mail Beta.</a><p>
                </p><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/+%0A" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Try it free.</a>
<p></p><p></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>