question-mark
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.

Quick question regarding L.esri.FeatureLayer vs L.esri.DynamicMapLayer

See original GitHub issue

@jgravois quick question here for dynamic layers, I use the “layers” option to reference the layer in the URL however is there something similar for https://esri.github.io/esri-leaflet/api-reference/layers/feature-layer.html ?

the URL is https://www.webapps.nwfsc.noaa.gov/server7/rest/services/Hosted/SoCalHookandLineSurvey/FeatureServer/0 can I do

                 L.esri.featureLayer({
                                          url: 'https://www.webapps.nwfsc.noaa.gov/server7/rest/services/Hosted/SoCalHookandLineSurvey/FeatureServer',
                                          layers: [0]
                                        }).addTo(map);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jwasilgeocommented, Jun 29, 2020

If you’re referring to the symbology–how those points are rendered and are styled on the map–then I think you can look at also using the esri-leaflet-renderers plugin. That’ll help your esri-leaflet featurelayer instance inherit symbology defined by the service at your url at FeatureServer/0 (which I noticed is defined as the red triangle symbol for all points).

You could also set your own symbology client-side with the pointToLayer or style constructor function options of the feature layer.

0reactions
Mak-NOAAcommented, Jun 30, 2020

Thank you @jwasilgeo that plugin solved the symbology problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

arcgis server - L.esri.featureLayer shows up and sometimes not
The geoportal1's AGS seems to work properly. FF understands the script. But what's not working? If I use L.esri.dynamicMapLayer instead of L.
Read more >
L.esri.DynamicMapLayer | Esri Leaflet - ArcGIS Developers
Map Services are used when its preferable to ask the server to draw layers and pass back the image which was generated on...
Read more >
how to bind tooltip to L.esri.DynamicMapLayer - Stack Overflow
I can bind a popup to esri leaflet's L.esri.DynamicMapLayer layer but how would I bind a tooltip to below DynamicMapLayer ? var featureLayer...
Read more >
Urgent ArcServer mapservice issue - Page 2 - Esri Community
Solved: Hi, We have an app that is having issues, and it looks like it's ArcServer but it could be a network issue....
Read more >
esri-leaflet - npm
Leaflet plugins for consuming ArcGIS Online and ArcGIS Server services.. Latest version: 3.0.8, last published: 4 months ago.
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found