[Cartoweb-users] Recenter Plugin problem
Oliver Christen
oliver.christen at camptocamp.com
Tue Jul 8 09:11:52 EDT 2008
first, verify you can draw a point with outline using the drawPoint tool.
then maybe specify a size for your symbol by adding a crosshairSymbolSize = somevalue in your location.ini in client_conf/
for info, symbol 1 is the second symbol in your symbols.txt, the first being 0.
you can also try to do it directly via the url:
demoCW3.php?recenter_x=290000&recenter_y=5140000&recenter_scale=500000&show_crosshair=1 (for example)
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.
regards
Oliver
----- Original Message -----
From: mannobug mannobug
To: Oliver Christen
Cc: cartoweb-users at lists.maptools.org
Sent: Tuesday, July 08, 2008 2:40 PM
Subject: Re: [Cartoweb-users] Recenter Plugin problem
Hi Oliver and thanks for your reply.
I just createmy location.ini under my project and fill it wiht this property:
crosshairSymbol = 1
crosshairSymbolColor = 0,192,0
On server side in Server_conf/myProject/symbols.txt i set this symbols:
SYMBOL
NAME "cerchio"
TYPE ellipse
FILLED true
POINTS 1 1 END
END
SYMBOL
NAME 'linea'
TYPE ellipse
POINTS 1 1 END
FILLED true
END
SYMBOL
NAME "triangolo"
TYPE VECTOR
FILLED TRUE
POINTS 0 1 .5 0 1 1 0 1 END
END
SYMBOL
NAME "quadrato"
TYPE VECTOR
FILLED TRUE
POINTS
0 0
0 0.5
0.5 0.5
0.5 0
0 0
END
END
but still don't work. What's wrong :-S
Thanks a lot.
Emmanuele
2008/7/8 Oliver Christen <oliver.christen at camptocamp.com>:
Hi
did you defined a symbol to use in your location.ini (client side)?
crosshairSymbol = the_symbol_id_as_defined_in_your_symbol_file_on_server_side
http://www.cartoweb.org/doc_head/docbook/xhtml/user.location.html
regards
Oliver
----- Original Message -----
From: mannobug mannobug
To: cartoweb-users at lists.maptools.org
Sent: Tuesday, July 08, 2008 11:34 AM
Subject: [Cartoweb-users] Recenter Plugin problem
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.
I developed a little plugin based on http://www.cartoweb.org/cwiki/HowToWriteaRecenterPlugin.
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.
My filterPostRequest function is above:
public function filterPostRequest(FilterRequestModifier $request) {
$searchString = $request->getValue('LatLng');
if (!empty($searchString)) {
$pieces = explode(", ", $searchString);
$request->setValue('recenter_x', $pieces[1]);
$request->setValue('recenter_y', $pieces[0]);
$request->setValue('recenter_scale', '50000');
$request->setValue('recenter_doit', '1');
$request->setValue('show_crosshair', '1');
}
}
In my client.ini i have enabled this plugin: exportPdf,exportCsv
and in server_conf this: outline, mapOverlay,exportPdf.
I followed another discussion on this list but nothing seem to change.
any idea?
Thanks a lot
Emmanuele
--------------------------------------------------------------------------
_______________________________________________
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/20080708/fb2371e7/attachment.html
More information about the Cartoweb-users
mailing list