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

2014-12-13 Thread gioza
As suggested by Armin, I modified PM.Layer.PMap.js file in this way: substitute lines 135-137 with the following ones (copied from highlights) getUrlParamsAdditional: function() { var now = parseInt(new Date().getTime() / 100); return 'timestamp=' + now; }, Now PMap layers

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

2014-12-09 Thread gioza
this function seems to do the job (partially). I have to do more tests because it works only after a pan trigger: function myRefreshMap(){ if (this.map) { map.layers[4].clearGrid(); map.layers[4].redraw(true); } }, clearGrid deletes the cache

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

2014-12-09 Thread Armin Burger
you could also just have it easy, and if you want layers without any caching, use the non-tiled (PMap) type or add a timestamp KVP at the end of each x/y/z request URL, as it's done for the highlight layer. On 12/09/2014 10:50 AM, gioza wrote: this function seems to do the job

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

2014-12-06 Thread gioza
The only way it works for is to set session_cache_limiter('nocache') in index.php and comment the following line. Obviously the effect can be appreciated after a reaload, not during a live session (not completly true). The function map.layers[i].redraw(true) isn't useful, I would try with a

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

2014-12-02 Thread gioza
Hi Armin, i tried with a shapefile (modify in qgis and show in pmapper) but with no success. I modified also theindex.php file . I am going to have more tries I let you khow. Thanks, Giovanni -- View this message in context:

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

2014-12-02 Thread Armin Burger
. Dezember 2014 um 09:28 Uhr Von: gioza al...@aliasinfo.it An: pmapper-users@lists.sourceforge.net Betreff: Re: [pmapper-users] Pmapper5: refresh a layer Hi Armin, i tried with a shapefile (modify in qgis and show in pmapper) but with no success. I modified also theindex.php file . I

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

2014-12-02 Thread gioza
I seems to produce effect if I reload the webgis service but not in the live session. (both php file with 1 as value) -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-refresh-a-layer-tp4025689p4025697.html Sent from the

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

2014-12-02 Thread gioza
Hi Armin, if I understood the modifications you suggested have effect on cache lifetime. I have to do more tries to understand why it doesn't work for me (I have cache also with PMap setting). By the way a layer changement (symbology, contents...) won't be appreciate during a live-session, i

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

2014-12-02 Thread Armin Burger
you don't have caching on non-tiled layers, unless the URL for the layer image is 100% identical. Not that likely if you consider map extent coordinates for requests having 6 or more decimals for each corner coordinate pair... On 12/02/2014 10:01 PM, gioza wrote: Hi Armin, if I understood

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