Commit cf8bb3e7 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

testing cache

parent 71619d94
......@@ -59,8 +59,16 @@
var weatherLayer = L.timeDimension.layer.wms.smhipicasso(wmsLayer, {
proxy: 'proxy',
cache: 10
});
cache: 50
});
map.on('layeradd', function(layer, layername){
map.timeDimension.prepareNextTimes(1,10, false);
});
var overlays = {
"Current arrows with speed": weatherLayer
......@@ -68,14 +76,14 @@
L.control.layers(baseLayers, overlays).addTo(map);
reqwest({
url: "meta",
method: 'get',
type: 'json',
success: function (data) {
console.log(data);
}
});
// reqwest({
// url: "meta",
// method: 'get',
// type: 'json',
// success: function (data) {
// console.log(data);
// }
// });
// var imageUrl = 'D:/stw/OceanRasterPlot/SeaSurfaceCurrentVelocity/SeaSurfaceCurrentVelocity_201704220000Z_0H.png',
// imageBounds = [[48.492, -4.102], [65.908, 30.158]];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment