Re: [pmapper-users] form button in query result

2013-03-25 Thread Marcello Benigno
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

Re: [pmapper-users] form button in query result

2011-11-30 Thread Armin Burger
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

Re: [pmapper-users] form button in query result

2011-11-30 Thread Armin Burger
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

Re: [pmapper-users] form button in query result

2011-11-30 Thread Thomas RAFFIN
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