Skip to content
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

time metadata for imagelayers #756

Closed
somsub opened this issue Mar 1, 2016 · 2 comments
Closed

time metadata for imagelayers #756

somsub opened this issue Mar 1, 2016 · 2 comments

Comments

@somsub
Copy link

somsub commented Mar 1, 2016

I have layers like this http://imagery.arcgisonline.com/arcgis/rest/services/LandsatGLS/NDVI_Colorized/ImageServer that I need to filter by start and end dates. Thank you for posting this excellent sample https://esri.github.io/esri-leaflet/examples/visualizing-time-on-dynamic-map-layer.html. My question is there a method by which I can get metadata if the layer is time enabled and what's the range to preset useful defaults?

Thanks for your help

@patrickarlt
Copy link
Contributor

@somsub You can use the exact same setTimeRange method on ImageMapLayer that you can on DynamicMapLayer. It is documented in the API reference https://esri.github.io/esri-leaflet/api-reference/layers/image-map-layer.html.

You can also use the layer.metadata(callback) method https://esri.github.io/esri-leaflet/examples/getting-service-metadata.html to get layer metadata for your service http://imagery.arcgisonline.com/arcgis/rest/services/LandsatGLS/NDVI_Colorized/ImageServer?f=pjson.

It would be nice to have an example of time enabled ImageMapLayer so I'm leaving this open.

@somsub
Copy link
Author

somsub commented Mar 3, 2016

Thanks a lot...I'll try to come up with an example for time-enabled ImageMapLayer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants