Merge ArcGIS feature layer and display as one layer on client side
See original GitHub issue- Browser and version:
All supported browsers
- Version of Leaflet (
L.version
):
N/A
- Version of esri Leaflet (
L.esri.VERSION
):
N/A Steps to reproduce the error:
N/A
What happens is [X].
N/A
I was expecting [Y].
I’ve read through the doc and couldn’t find this…
So does the library support merging several ArcGIS feature layer and display as one single layer on client-side on the fly?
e.g. (a URL for a ArcGIS feature layer service would be) https://services6.arcgis.com/awdfawfwafawrawe/arcgis/rest/services/[project_name]/FeatureServer/1
So I can have several of these based on what the user toggles. (User could toggle to activate two layers or more) And I want to merge all the layers user selected, and display only one merged layer on the client side.
Or, what are the alternatives (don’t have to be client-side) to achieve this - “merging several feature layer and display as one layer on the fly”?
Thanks.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
@jwasilgeo is right. you can use
L.esri.DynamicMapLayer
both to display and query features in more than one layer in a service.see https://esri.github.io/esri-leaflet/examples/identifying-features.html
Not that I am aware of but here are some alternative ideas:
L.LayerGroup
to group yourL.esri.FeatureLayer
instances. Does this solve your use case?L.esri.DynamicMapLayer
and set itslayers
property.