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 '×tamp=' + now;
},
Now PMap layers are a
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 (par
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
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
map
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
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 think.
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 pmapper-us
g, 02. Dezember 2014 um 09:28 Uhr
Von: gioza
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 am going to
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:
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com
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 modif
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) fo
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 );
12 matches
Mail list logo