Esri Leaflet

Inherit service symbology

This sample demonstrates how to recreate the symbology defined for feature services in the client automatically. The demo relies on the Esri Leaflet Renderers plugin.

  <meta charset=utf-8 />
  <title>Inherit service symbology</title>
  <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />

  <!-- Load Leaflet from CDN-->
  <link rel="stylesheet" href="" />
  <script src=""></script>

  <!-- Load Esri Leaflet from CDN -->
  <script src=""></script>

    body { margin:0; padding:0; }
    #map { position: absolute; top:0; bottom:0; right:0; left:0; }

<!-- Load Esri Leaflet Renderers -->
<script src=""></script>

<div id="map"></div>

<script type='text/javascript'>
  var map ='map').setView([45.548, -122.632], 12);

  //renderer type: unique value
    url: ''