Map refresh does not clear JSON_Results variable

View: New views
2 Messages — Rating Filter:   Alert me  

Map refresh does not clear JSON_Results variable

by Paul Wickman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm working on a modification to the print routine that will print the  
results of a query.  It seems to be working fine so far, however...  
When the Reload/Refresh Map button is clicked to unselect the queried  
features, the JSON_Results session variable does not get cleared.  
Therefore, the query results still show up on all subsequent printed  
maps, even though from the user's perspective those results have been  
unselected.

Where would be the right place in the code to clear the JSON_Results  
variable when the map is refreshed?


Thanks,

Paul Wickman
North Star Geographics
pwickman@...
612.280.5850


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pmapper-users mailing list
pmapper-users@...
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Re: Map refresh does not clear JSON_Results variable

by Armin Burger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

in pm.map.js

reloadMap: function(remove) {
...
             PM.extentSelectedFeatures = null;
             // insert line
             unset($_SESSION['JSON_Results']);
...

see also
http://svn.pmapper.net/trac/wiki/DocManual#javascript
http://svn.pmapper.net/trac/wiki/FaqCustomizations#CustomizationsofCSSandJavaScript

armin


On Mon, Oct 26, 2009 at 11:51 PM, Paul Wickman
<pwickman@...> wrote:

> I'm working on a modification to the print routine that will print the
> results of a query.  It seems to be working fine so far, however...
> When the Reload/Refresh Map button is clicked to unselect the queried
> features, the JSON_Results session variable does not get cleared.
> Therefore, the query results still show up on all subsequent printed
> maps, even though from the user's perspective those results have been
> unselected.
>
> Where would be the right place in the code to clear the JSON_Results
> variable when the map is refreshed?
>
>
> Thanks,
>
> Paul Wickman
> North Star Geographics
> pwickman@...
> 612.280.5850
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@...
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pmapper-users mailing list
pmapper-users@...
https://lists.sourceforge.net/lists/listinfo/pmapper-users