[ka-Map-users] Initial zoom and center point, plus xmloverlay icon issue

Alvin Clay orionkamap at yahoo.com
Tue Jul 25 18:58:29 EDT 2006


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.

    var map = getQueryParam('map');
    var extents = [-75,40,8];
    var cps = getQueryParam('cps');
    
    myKaMap = new kaMap( 'viewport' );
    var kaNav = new kaNavigator( myKaMap );
    kaNav.activate();
    myKaZoomer = new kaZoomer(myKaMap); 
    drawPage();
    myKaMap.initialize( map, extents, cps );
    myXmlOverlay = new kaXmlOverlay( myKaMap, 250 );
     myXmlOverlay.loadXml('points.xml');

...........................


Also, I have a problem with the icon I created for overlays.

This is the icon graphic:

http://209.200.237.68/images/dot.gif

This is what is looks like on the map at all zoom levels:

http://209.200.237.69/images/dot_mistake.gif

This is the point info in the xml file:

  <point x="-74.9" y="39.993" id="p3" redraw="true">
   <label boxcolor="#000000" h="10" w="50" font="Arial" color="#FFFFFF" px="5" py="5">Point 3</label>
   <icon src="/images/dot.gif" h="19" w="19" />
 </point>

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20060725/c85516e7/attachment-0001.html


More information about the ka-Map-users mailing list