<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>hi, </FONT></DIV>
<DIV><FONT size=2>you can simply pass the parameter
show_crosshair=1</FONT></DIV>
<DIV><FONT size=2>see <A
href="http://www.cartoweb.org/doc_head/docbook/xhtml/dev.newplugin.html#dev.newplugin.special.filters">http://www.cartoweb.org/doc_head/docbook/xhtml/dev.newplugin.html#dev.newplugin.special.filters</A> for
the list of existing parameters accepted</FONT></DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=claudio.cicali@gmail.com
href="mailto:claudio.cicali@gmail.com">claudio cicali</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, May 17, 2008 1:41
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] [UPDATE]
Creating a cross</DIV>
<DIV><BR></DIV>Hello,<BR><BR>regarding my previous post on creating a cross
(or a point) at given coordinates via Ajax,<BR>I suppose the plugin involved
is OUTLINE.<BR><BR>I noticed that the outline plugin has an ajax action to use
(AddFeature) that could do the job,<BR>but I don't understand how to use it (I
have the plugin installed, of course).<BR><BR>In the handleResponse of my
plugin I have:<BR><BR>
document.forms['carto_form'].recenter_x.value =
result.location_x;<BR>
document.forms['carto_form'].recenter_y.value =
result.location_y;<BR><BR>
CartoWeb.trigger('Location.Recenter',
'doSubmit()');<BR>
CartoWeb.trigger('Outline.AddFeature', 'doSubmit()');<BR><BR clear=all>The
second trigger is, of course, not working. <BR><BR>I know that the outline
plugin may be called via GET, giving it the parameter "outline_point"<BR>with
the coordinates of the point but...:<BR><BR>1. how do I could "trigger" the
outline plugin via ajax, having it drawing the point and the label?<BR>2. is
that the right way (calling two or three ajax asyncronous triggers) to add
feature,<BR>or could I do it on my ClientPluginName.php script?
How?<BR><BR>Thank you,<BR><BR>-- <BR>Claudio Cicali<BR><A
href="mailto:claudio.cicali@gmail.com">claudio.cicali@gmail.com</A><BR><A
href="http://claudio.cicali.name">http://claudio.cicali.name</A>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>