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 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.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to