I am trying to add layers from this ArcGIS MapServer to my Leaflet webmap:

This code added the weather warnings layer (12), but used the default blue symbol for all of the feature types.

var URL2 = 'http://igems.doi.gov/arcgis/rest/services/igems_haz/MapServer/12/'

var warnings = L.esri.featureLayer({
    url: URL2,
    useCors: false


Looking at this service description page, it seems that there is are preset symbols configured on the server: http://igems.doi.gov/arcgis/rest/services/igems_haz/MapServer/12

From example for an Ash Warning:

Style: esriSFSSolid 
Color: [169, 169, 169, 255] 
  Style: esriSLSSolid 
  Color: [0, 0, 0, 0] 
Width: 0  

Is there an option for L.esri.featureLayer to use the preset symobology?


Check out Esri Leaflet Renderers:

Plugin for Esri Leaflet to use drawing information defined in the feature service

  • That worked. Was very easy to implement too. Thank you very much!!! – Ezra Boyd Sep 13 '16 at 2:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.