[Cartoweb-users] retrieve map coordinates with query tool
Valerio Noti
valerionoti at yahoo.it
Fri Feb 9 03:53:10 EST 2007
Oliver,
I added:
if (isset($request['selection_coords']) {
$this->coordinates = $request['selection_coords'];
}
in handleHttpPostRequest in coreplugins/query/client/ClientQuery.php file (is the right file?)
How can I call coordinates string from tables.tpl file if I want to display them with other query results?
Thank you
Valerio
/*
Valerio Noti
valerionoti at yahoo.it
*/
----- Original Message -----
From: Oliver Christen
To: Valerio Noti ; cartoweb-users at lists.maptools.org
Sent: Thursday, February 08, 2007 7:42 AM
Subject: Re: [Cartoweb-users] retrieve map coordinates with query tool
Hi Valerio,
yes, each query return the coordinate of the point or selection on the map.
you can retrieve the data from the handleHttpPostRequest ( or filterPostRequest, depending what you want to do with the values)
the variable name is "selection_coords"
for exemple, in handleHttpPostRequest :
if (isset($request['selection_coords']) {
$this->coordinates = $request['selection_coords'];
}
or in filterPostRequest :
if ($request->getValue('selection_coords') && !empty($request->getValue('selection_coords'))) {
this->coordinates = $request->getValue('selection_coords');
}
the coordinates are a string like this 'x,y' for point or 'xmin,ymin;xmax,ymax;...' for box
regards
Oliver
----- Original Message -----
From: Valerio Noti
To: cartoweb-users at lists.maptools.org
Sent: Wednesday, February 07, 2007 3:23 PM
Subject: [Cartoweb-users] retrieve map coordinates with query tool
hello,
is it possible to retrieve map coordinates where user clicked with query tool?
Thanks in advance
Valerio
/*
Valerio Noti
valerionoti at yahoo.it
*/
----------------------------------------------------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.29/673 - Release Date: 06/02/07 17.52
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20070209/a5718eb5/attachment.html
More information about the Cartoweb-users
mailing list