[pmapper-users] to execute a JavaScript function every time the map is refreshed

2011-03-29 Thread Andreas Douvalis
HiĀ  My name is Andreas and I use pmapper 4.1.1 in Wiki i found that: to execute a JavaScript function every time the map is refreshed then add to the init function referenced in config.inc something like $(#pmMapRefreshImg).bind(load, function(e){ pm_scaleBar.update(PMap.scale); });

Re: [pmapper-users] to execute a JavaScript function every time the map is refreshed

2011-03-29 Thread Armin Burger
Andreas this changed in the current version since the old method did not work with Chrome browsers, the docs are not updated yet. Use something like PM.Map.bindOnMapRefresh(function(e){ //your_function ... }); if you need you can also pass parameters to the event handler function