[pmapper-users] Pmapper5: refresh a layer

2014-12-01 Thread gioza
Pmapper5 has a great property which is the client-side caching so users can browse very fast in the map! Sometimes it is useful to refresh a layer (after editing or because a layer contents are changed for any reason). I tried with a new control function in this way: map.layers[4].redraw(true );

[pmapper-users] Pmapper5: PanZoomBarContainer problem with ol 2.12 implementation

2014-12-01 Thread gioza
As I mentioned in another post the PanZoomBarContainer doesn't work with OL 2.12 code. I realised that removing from line 73 of index.phtml pmPanZoomBarContainer it works $(document).ready(function () { $('#map').pmAppendElement('div', {'id': 'pmPanZoomBarContainer'});

Re: [pmapper-users] Pmapper5: refresh a layer

2014-12-01 Thread Armin Burger
tiled layers are cached by the browser (which is the main advantage towards non-tiled ones...). In case of changes to the data or map file (symbols etc) you need to empty the browser cache. I have to check iof there is a config setting for defining the cache policy (expiration time of tiles)

Re: [pmapper-users] Pmapper5: refresh a layer

2014-12-01 Thread Armin Burger
could you give it a try and change in lib/map/pmtile/maptile.php line 55 to $offset = 1; I'm not sure if it's this value or the one from the index.php file for session_cache_expire that defines effectively the cache expiration. In the case the offset value works I will add some small