[ka-Map-users] Markers question

Paul Spencer pspencer at dmsolutions.ca
Mon May 15 06:31:48 EDT 2006


the capability to add marker images exists ... you can do the following:

var canvas = null;

function addMarker(x,y) {
   if (!canvas) {
     canvas = myKaMap.createDrawingCanvas(500);
   var img = document.createElement('img');
   img.src = 'images/marker.png';
   return img;

a canvas can be used to hold more than one marker.  You can have more  
than one canvas.  Since it is actually just a <div> you can also do  
stuff like change its visibility, opacity etc using css.

'img' can be any html element, for instance it could be a div that  
contains several images (drop shadow?) or a combination of images and  
text (popup dialog?)

x,y is the location in your coordinate system.



On 15-May-06, at 1:28 AM, <James.Ring at ga.gov.au>  
<James.Ring at ga.gov.au> wrote:

> Hi all,
> First of all, I'm new to ka-map, but I'm investigating it as a  
> potential tool
> for use here at Geoscience Australia (a national repository for all  
> sorts of
> geospatial data). I'm very impressed with ka-map's functionality!
> Are there any plans to add Google Maps-style markers to the API?  
> I've seen
> some discussion about it here, are there any patches floating  
> around which
> implement that behaviour?
> Awesome tool, I look forward to using ka-maps more and (hopefully)
> contributing something useful back to it.
> Thanks,
> James
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

|Paul Spencer                           pspencer at dmsolutions.ca   |
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|

More information about the ka-Map-users mailing list