Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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):


  • Version of esri Leaflet (L.esri.VERSION):

N/A Steps to reproduce the error:


What happens is [X].


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)[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”?


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

jgravoiscommented, Oct 9, 2019

@jwasilgeo is right. you can use L.esri.DynamicMapLayer both to display and query features in more than one layer in a service.


jwasilgeocommented, Oct 9, 2019

Not that I am aware of but here are some alternative ideas:

  1. Try to use the Leaflet L.LayerGroup to group your L.esri.FeatureLayer instances. Does this solve your use case?
  2. If you have access to ArcGIS Enterprise MapServer layers instead (with “…MapServer/” at the end of the URL), you could use the L.esri.DynamicMapLayer and set its layers property.
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to merge ArcGIS feature layers and display as
I am working on a project that utilizes ArcGIS JS API to display maps using the approach of Portal Item layers.
Read more >
Merge features into one feature—ArcGIS Pro | Documentation
Click the Existing Feature tab. and select the features on the same layer you want to merge. The selected features appear in the...
Read more >
Merge Layers—ArcGIS Online Help | Documentation
The Merge Layer tool copies features from two layers of the same feature type (points, lines, or areas) into a new layer.
Read more >
MergeLayers | API Reference | ArcGIS API for JavaScript 3.42
The MergeLayers widget copies features from two layers into a new layer. ... When true, returns the result of analysis as a client-side...
Read more >
Merge layers | Documentation - ArcGIS Developers
A merge analysis is the process combining two feature datasets into a single dataset. To execute the analysis, use the spatial analysis service...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found