[Cartoweb-users] [UPDATE] Creating a cross
Oliver Christen
oliver.christen at camptocamp.com
Mon May 19 02:10:13 EDT 2008
hi,
you can simply pass the parameter show_crosshair=1
see http://www.cartoweb.org/doc_head/docbook/xhtml/dev.newplugin.html#dev.newplugin.special.filters for the list of existing parameters accepted
regards
Oliver
----- Original Message -----
From: claudio cicali
To: cartoweb-users at lists.maptools.org
Sent: Saturday, May 17, 2008 1:41 PM
Subject: [Cartoweb-users] [UPDATE] Creating a cross
Hello,
regarding my previous post on creating a cross (or a point) at given coordinates via Ajax,
I suppose the plugin involved is OUTLINE.
I noticed that the outline plugin has an ajax action to use (AddFeature) that could do the job,
but I don't understand how to use it (I have the plugin installed, of course).
In the handleResponse of my plugin I have:
document.forms['carto_form'].recenter_x.value = result.location_x;
document.forms['carto_form'].recenter_y.value = result.location_y;
CartoWeb.trigger('Location.Recenter', 'doSubmit()');
CartoWeb.trigger('Outline.AddFeature', 'doSubmit()');
The second trigger is, of course, not working.
I know that the outline plugin may be called via GET, giving it the parameter "outline_point"
with the coordinates of the point but...:
1. how do I could "trigger" the outline plugin via ajax, having it drawing the point and the label?
2. is that the right way (calling two or three ajax asyncronous triggers) to add feature,
or could I do it on my ClientPluginName.php script? How?
Thank you,
--
Claudio Cicali
claudio.cicali at gmail.com
http://claudio.cicali.name
------------------------------------------------------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080519/b929e417/attachment.html
More information about the Cartoweb-users
mailing list