Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stw
L.TimeDimension.layer.weather
Commits
cf8bb3e7
Commit
cf8bb3e7
authored
Oct 27, 2017
by
Tomas Pettersson
🏸
Browse files
testing cache
parent
71619d94
Changes
1
Hide whitespace changes
Inline
Side-by-side
demo/index.html
View file @
cf8bb3e7
...
...
@@ -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]];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment