[ka-Map-users] API wrapper
bpederse at gmail.com
Sun Sep 4 17:25:47 EDT 2005
hi all, i've been hacking a little on kaMap. thought i'd share what id done
as i think it might be useful with some work.
the stuff is at:
http://188.8.131.52/kamapdev/htdocs/index2.html (not index.html)
and the new kaMap methods are in:
there is a kaMap.setSize(xPix,yPix) to resize the map.
there is kaMap.addControl(constructor,div_id,..) to provide a common
constructor to add controls such as navigator, legend, etc.
i added new zoom controls so now they can be added via
and likewsie for kaZoomOut where oMap is and instance of kaMap.
also, i added an addOverlay method to easily add points (icons) on the map
(ala google maps) that respond to events. mostly i just implemented what
paul had said in an email i found in the archives.
see the index2.html above for the documentation and examples.
most of this was just quick hacks which were simple thanks to the work
already done. i think that the addOverlay will only work with the CVS
version?? dont know really.
any feedback welcome. paul, if you can use this, or have suggestions please
also, is there a way to keep the icons above the map on drag?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ka-Map-users