-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate layer pass options - modified GetLayer() function #54
Comments
Hey. I need to be able to handle timeseries WMS too.
Any ideas what I've missed? |
Hello. Can you please look at this link to see if it works. I used Slider control (top right corner) to switch between layers. You just slide right and wait for layer to load and check if it is OK. I don't know anything about the given layers so I cannot analyse the results. Check out the source html to see the code. Hope it helps. Here's the code for future reference:
|
I think the example is changing the layer but not the time. |
Hi. Yes, I have put the same time because I don't know what the server supports. You should try this code on your own with diff parameters. Try first to load a single layer with time options and then another to see if layer is changed based on time param. Also you can check if the server supports time param by using qgis and time manager plugin: https://www.youtube.com/watch?v=nHrFOPf1UGw I tried this with the starting date you gave and I got error message: Could not find suitable time format for value 1961-03-01T00:00:00.000Z Are you sure that the server has layers with time setup? |
I needed an option to add Options to each layer I add with getLayer() funcion. My solution was:
Under
wms.Source = L.Layer.extend({
add this:
then below:
add this:
Initialize layers like this e.g.:
source.getLayerWithOptions("layer1",{time: "1990-2001").addTo(map);
which adds TIME option to this layer only.
The text was updated successfully, but these errors were encountered: