[Cartoweb-users] Drawing a cross on a point

claudio cicali claudio.cicali at gmail.com
Fri May 16 14:28:33 EDT 2008


Hello,

I'm developing a custom "search" plugin, mostly Ajax...

I'm at the point where I have the X and Y coordinates of the search result
in my AjaxPlugins.handleResponse() function.

I can recenter the map (not zooming, but that does not matter for now) using
the
Cartoweb.trigger('Location.Recenter') just inside the handleResponse() after
doing a simple

        document.forms['carto_form'].recenter_x.value = result.location_x;
        document.forms['carto_form'].recenter_y.value = result.location_y;

("result" is the object from the plugin)

Now I'd like to draw a cross (or a circle...) directly over the point.

It sound simple, but I don't know how to approach the problem...

:)

Thank you

-- 
Claudio Cicali
claudio.cicali at gmail.com
http://claudio.cicali.name
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080516/94d13efe/attachment.html


More information about the Cartoweb-users mailing list