<!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></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>
<DIV><FONT size=2></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=mannobug@gmail.com href="mailto:mannobug@gmail.com">mannobug
mannobug</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">Oliver Christen</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</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> Tuesday, July 08, 2008 5:13
PM</DIV>
<DIV style="FONT: 10pt arial"><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">oliver.christen@camptocamp.com</A>>:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV class=Ih2E3d>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228); FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=mannobug@gmail.com href="mailto:mannobug@gmail.com"
target=_blank>mannobug mannobug</A> </DIV></DIV>
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c>
<DIV
style="FONT: 10pt arial; 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: 10pt arial; 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: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Tuesday, July 08, 2008 2:40 PM</DIV>
<DIV
style="FONT: 10pt arial; 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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>
<DIV></DIV>
<DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228); FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=mannobug@gmail.com href="mailto:mannobug@gmail.com"
target=_blank>mannobug mannobug</A> </DIV>
<DIV
style="FONT: 10pt arial; 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: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Tuesday, July 08, 2008 11:34 AM</DIV>
<DIV
style="FONT: 10pt arial; 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></BLOCKQUOTE></BODY></HTML>