Re: [pmapper-users] Pmapper5: refresh a layer
Brought to you by:
arminburger
From: gioza <al...@al...> - 2014-12-13 14:45:41
|
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 always updated. Just activate/disactivate the layer you will appreciate the modifications if they occured. A function like this: trigger: function myRefreshMap(){ map.layers[3].clearGrid(); map.layers[3].redraw(true); }, will force the update in the "current zoom extent/view"; Looking in the "PM.Layer.PMap.js" file I found out the parameter which rules the "opacity" of highlights (not manageable from template.map file): line 148 -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-refresh-a-layer-tp4025689p4025707.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |