Hi Oliver,<br>now everything is ok :-)<br>many thanks to your patience.<br>Regards<br>Emmanuele<br><br><div class="gmail_quote">2008/7/9 Oliver Christen <<a href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2">Hi</font></div>
<div><font size="2"></font> </div>
<div><font size="2">the strange behaviour you are experimenting is usualy caused
by a bug in file carto.js, function setActiveToolButton.</font></div>
<div><font size="2">replace </font></div>
<div><font size="2">if(elt == null) return;</font></div>
<div><font size="2">by</font></div>
<div><font size="2">if(elt == null) continue;</font></div>
<div><font size="2"></font> </div>
<div><font size="2">regards</font></div>
<div><font size="2">Oliver</font></div><font color="#888888">
</font><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div class="Ih2E3d">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="mannobug@gmail.com" href="mailto:mannobug@gmail.com" target="_blank">mannobug
mannobug</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="oliver.christen@camptocamp.com" href="mailto:oliver.christen@camptocamp.com" target="_blank">Oliver Christen</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b> <a title="cartoweb-users@lists.maptools.org" href="mailto:cartoweb-users@lists.maptools.org" target="_blank">cartoweb-users@lists.maptools.org</a>
</div>
</div><div><div></div><div class="Wj3C7c"><div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>Sent:</b> Wednesday, July 09, 2008 9:12
AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [Cartoweb-users] Recenter
Plugin problem</div>
<div><br></div>Hi Oliver...<br>it works :-) everything was ok since yesterday
and i don't know why i had <font size="3">getLayerByName</font>. Every time i
did clean before and after installation.... by the way :-)<br>But now it's
sound like with outline enabled i cannot use query_by_bbox tool and
geoloc plugin to ask coordiantes. When i click over the map with query tool it
zoom-in in a strange way :-O.<br><br>I try to search what can be.<br>keep in
touch and thanks a lot.<br>Emmanuele<br><br><br>
<div class="gmail_quote">2008/7/9 Oliver Christen <<a href="mailto:oliver.christen@camptocamp.com" target="_blank">oliver.christen@camptocamp.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2">Hi</font></div>
<div><font size="2"></font> </div>
<div><font size="2">if you have a "</font><font size="3">getLayerByName failed"
error, it means the name of the layers in your mpafile and the names you
specified in your outline.ini are not the same.</font></div>
<div><font size="2"></font> </div>
<div><font size="2">dont forget to do a cw3setup.php --clean followed by
a ?reset_session in the url so your change are effectively taken into
account.</font></div>
<div><font size="2"></font> </div>
<div><font size="2">and verify outline is also enabled on server side
(/server_conf/*yourproject*/*yourproject*.ini).</font></div>
<div><font size="2"></font> </div>
<div><font size="2">regards</font></div>
<div><font size="2">Oliver</font></div><font color="#888888">
<div><font size="2"></font> </div></font>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="mannobug@gmail.com" href="mailto:mannobug@gmail.com" target="_blank">mannobug mannobug</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="oliver.christen@camptocamp.com" href="mailto:oliver.christen@camptocamp.com" target="_blank">Oliver
Christen</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b>
<a title="cartoweb-users@lists.maptools.org" href="mailto:cartoweb-users@lists.maptools.org" target="_blank">cartoweb-users@lists.maptools.org</a> </div></div>
<div>
<div></div>
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, July 08, 2008 5:13 PM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [Cartoweb-users] Recenter Plugin problem</div>
<div><br></div>Hi Oliver...no way!<br>So I try to explain what i did in
this time.<br>I'm not abel to draw a point this is the real problem.<br>So
i tried to:<br>1. enable outline plugin in client;<br>2. add
"cartoweb_point_outline" etc to myProject.map at the end;<br>3. create
outline.ini with thi information:<br> ; outline layer for
points<br>pointLayer = cartoweb_point_outline<br><br>; if not set, no
symbols will be returned to the client.<br>; (default not
set)<br>pointSymbols = full_triangle, circle<br>pointSymbols.labels =
triangle, point<br><br>; outline layer for lines <br>lineLayer =
cartoweb_line_outline<br><br>; outline layer for rectangles and
polygons<br>polygonLayer = cartoweb_polygon_outline<br><br>; color of the
mask, default is 255 255 255<br>;maskColor = 90 90 90<br><br>; ratio by
which to multiply the area before returning it to the client<br>; (default
1.0)<br>areaFactor = 0.000001<br><br>At this poit an error (getLayerByName
failed) occour in serverside class of outline plugin.<br><br>I try all the
things that you said to me but nothing work.<br>I really don't know what
can be! :-S<br>Thank you.<br>Emmanuele<br><br>
<div class="gmail_quote">2008/7/8 Oliver Christen <<a href="mailto:oliver.christen@camptocamp.com" target="_blank">oliver.christen@camptocamp.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="3">first, verify you can draw a point with outline using
the drawPoint tool.</font></div>
<div> </div>
<div><font size="2">then maybe specify a size for your symbol by adding a
<font size="3">crosshairSymbolSize = somevalue in your location.ini in
client_conf/</font></font></div>
<div> </div>
<div><font size="2">for info, symbol 1 is the second symbol in your
</font><font size="3">symbols.txt, the first being 0.</font></div>
<div> </div>
<div><font size="2">you can also try to do it directly via the
url:</font></div>
<div><font size="2">demoCW3.php?recenter_x=290000&recenter_y=5140000&recenter_scale=500000&show_crosshair=1
(for example)</font></div>
<div><font size="2"></font> </div>
<div><font size="2">if it still doesnt work, well, Im out of idea, so you
will need to try to add some debug in the code to see whats going
on.</font></div>
<div><font size="2"></font> </div>
<div><font size="2">regards</font></div>
<div><font size="2">Oliver</font></div><font color="#888888"></font>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="mannobug@gmail.com" href="mailto:mannobug@gmail.com" target="_blank">mannobug mannobug</a> </div></div>
<div>
<div></div>
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="oliver.christen@camptocamp.com" href="mailto:oliver.christen@camptocamp.com" target="_blank">Oliver
Christen</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b>
<a title="cartoweb-users@lists.maptools.org" href="mailto:cartoweb-users@lists.maptools.org" target="_blank">cartoweb-users@lists.maptools.org</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, July 08, 2008 2:40 PM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [Cartoweb-users] Recenter Plugin problem</div>
<div><br></div>Hi Oliver and thanks for your reply.<br>I just createmy
location.ini under my project and fill it wiht this
property:<br><br>crosshairSymbol = 1<br>crosshairSymbolColor =
0,192,0<br><br>On server side in Server_conf/myProject/symbols.txt i
set this symbols:<br>SYMBOL<br> NAME "cerchio"
<br> TYPE ellipse <br> FILLED true
<br> POINTS 1 1 END
<br>END<br><br>SYMBOL<br> NAME
'linea'<br> TYPE ellipse<br>
POINTS 1 1 END<br> FILLED
true<br>END<br><br>SYMBOL<br> NAME
"triangolo"<br> TYPE VECTOR<br>
FILLED TRUE<br> POINTS 0 1 .5 0 1 1 0 1
END<br>END<br><br>SYMBOL<br> NAME "quadrato"<br> TYPE
VECTOR<br> FILLED TRUE<br> POINTS<br> 0
0<br> 0 0.5<br> 0.5
0.5<br> 0.5 0<br> 0 0<br>
END<br>END<br><br>but still don't work. What's wrong :-S<br>Thanks a
lot.<br>Emmanuele<br><br><br>
<div class="gmail_quote">2008/7/8 Oliver Christen <<a href="mailto:oliver.christen@camptocamp.com" target="_blank">oliver.christen@camptocamp.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2">Hi</font></div>
<div><font size="2"></font> </div>
<div><font size="2">did you defined a symbol to use in your
location.ini (client side)?</font></div>
<div><font size="2"></font> </div>
<div><font size="2">crosshairSymbol =
the_symbol_id_as_defined_in_your_symbol_file_on_server_side</font></div>
<div><font size="2"></font> </div>
<div><font size="2"><a href="http://www.cartoweb.org/doc_head/docbook/xhtml/user.location.html" target="_blank">http://www.cartoweb.org/doc_head/docbook/xhtml/user.location.html</a></font></div>
<div><font size="2"></font> </div>
<div><font size="2">regards</font></div>
<div><font size="2">Oliver</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>
<div></div>
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="mannobug@gmail.com" href="mailto:mannobug@gmail.com" target="_blank">mannobug mannobug</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="cartoweb-users@lists.maptools.org" href="mailto:cartoweb-users@lists.maptools.org" target="_blank">cartoweb-users@lists.maptools.org</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, July 08, 2008 11:34 AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
[Cartoweb-users] Recenter Plugin problem</div>
<div><br></div>Hi all first i'd like to say sorry for my
unsubscribe but something was wrong with my mail account :-D now
everything is ok.<br>I developed a little plugin based on <a href="http://www.cartoweb.org/cwiki/HowToWriteaRecenterPlugin" target="_blank">http://www.cartoweb.org/cwiki/HowToWriteaRecenterPlugin</a>.<br>Everything
is ok, it does recentering on selected point (with decimal
coordinates) and zooming; the problem is with the crossahir
parameter I'm not able to show nothing on my map.<br>My
filterPostRequest function is above:<br> public
function filterPostRequest(FilterRequestModifier $request)
{<br> <br>
$searchString =
$request->getValue('LatLng');<br>
if (!empty($searchString))
{<br> $pieces = explode(", ",
$searchString);<br>
$request->setValue('recenter_x',
$pieces[1]);<br>
$request->setValue('recenter_y',
$pieces[0]);<br>
$request->setValue('recenter_scale',
'50000');<br>
$request->setValue('recenter_doit', '1');<br>
$request->setValue('show_crosshair',
'1');<br>
}<br>}<br><br>In my client.ini i have enabled this plugin:
exportPdf,exportCsv<br>and in server_conf this: outline,
mapOverlay,exportPdf.<br><br>I followed another discussion on this
list but nothing seem to change.<br>any idea?<br>Thanks a
lot<br>Emmanuele<br></div></div>
<p></p>
<hr>
<p></p>_______________________________________________<br>Cartoweb-users
mailing list<br><a href="mailto:Cartoweb-users@lists.maptools.org" target="_blank">Cartoweb-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/cartoweb-users" target="_blank">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a><br>
</blockquote></div></blockquote></div><br></div></div></blockquote></div></blockquote></div><br></div></div></blockquote></div></blockquote></div><br></div></div></blockquote></div>
</blockquote></div><br>