[OpenLayers-Users] Strategy.Fixed with Parameters Problem
matth1as
mnick86 at gmail.com
Mon Nov 28 15:59:41 EST 2011
Hi, I have the following Problem: I have a Vector Layer with Strategy Fixed,
Protocol HTTP along with some Parameters which are returned by a function:
var opts = {
projection: map.displayProjection,
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "nodes.gojson.php",
format: new OpenLayers.Format.GeoJSON({}),
params: {'day':getSelectedDay(), 'month':getSelectedMonth(),
'year':getSelectedYear()},
readWithPOST:true
})
};
sundials = new OpenLayers.Layer.Vector("KML", opts);
This works as expected, the POST request contains the parameters (e.g.
day=1, month=2, year=2011).
A few seconds later, I change day=10,month=12,year=2012 and call
sundials.refresh() to refresh the vector layer.
But here is the Problem, the new request contains the old values (1,2,2011)
?!
Is there a way to get the params updated?!
thanks
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Strategy-Fixed-with-Parameters-Problem-tp7040358p7040358.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list