Hello Alessandro,
I'm trying to develop something very similar to what you did with this
p.mapper application: http://www.simsity.it/pmapper/PPBwebgis.phtml
A button on the TOC that when clicked, opens a form, and when submitted, it
will do a reload on the map (with the action that I intend to do
I just had a look at the code and it could also be done adding the x/y
coordinates as property to the Query object, this requires overwriting
PM.Query.showQueryResult()
and adding there the lines
var geoCoords = PM.ZoomBox.getGeoCoords(mx, my);
this.geox = geoCoords.x;
this.geoy
just a small additional comment to Thomas' suggestions:
instead of changing x_info.php directly I would recommend defining via
the JS variable (e.g. set in js_config.php)
PM.Query.xInfoPHP
the path to a PHP script used for getting the query results in the way
you need it. This custom PHP scri
Hi,
I think you have the choice between:
- change x_info.php to send coordinates in JSON, then use them in
PM.Query.writeQResult, then send them to returnNoResultHtml (because in
your code "xy" is always undefined)
- change x_info.php and keep coordinates in $_SESSION, in the
returnNoResultHt