[ka-Map-users] API wrapper
Brent Pedersen
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://128.32.253.220/kamapdev/htdocs/index2.html (not index.html)
and the new kaMap methods are in:
http://128.32.253.220/kamapdev/htdocs/bpkaMap.js
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
oMap.addControl(kaZoomIn, 'divid','path_to_icon')
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
do.
also, is there a way to keep the icons above the map on drag?
-brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20050904/1a0fc487/attachment.html
More information about the ka-Map-users
mailing list