Thank you very much, everything work fine, I thing this function is very
useful for who want to show/clear temporary Annotations on the map :-)

BTW, thanks for your recommend about using custom.js in config/default
folder, much much more convenient than edit the compress JS file =))


On Wed, Jan 13, 2010 at 2:24 AM, Armin Burger <armin.bur...@gmail.com>wrote:
>
> 'reloadMap' is a JavaScript function,
>
> the call
> unset($_SESSION['url_points']);
>
> is PHP code... mixing both will not work... ;-)
>
>
> try using
>
> PM.setSessionVar('url_points', 'null');
>
> I'd recommend that you do not change this in the Javascript files
> directly but that you add it in a *.js file under your config directory,
> like
>
>
> $.extend(PM.Map,
> {
>     /**
>      * Reload application
>      */
>     reloadMap: function(remove) {
>         var mapurl = PM_XAJAX_LOCATION +
> 'x_load.php?'+SID+'&zoom_type=zoompoint';
>         if (remove) {
>             mapurl += '&resultlayer=remove';
>             PM.extentSelectedFeatures = null;
>             PM.setSessionVar('url_points', 'null');
>         }
>         this.updateMap(mapurl);
>     }
> });
>
>
> In order for this to work correctly you will also need to replace the
> file 'incphp/xajax/x_setsessionvar.php' with the one from SVN trunk:
>
>
> http://svn.pmapper.net/trac/browser/pmapper/trunk/pmapper/incphp/xajax/x_setsessionvar.php?format=raw
>
>
> armin
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to