JasonSanford / leaflet-vector-layers

A little help to viewing ArcGIS Server, Geocommons, Arc2Earth, CartoDB, GIS Cloud, etc. vector data in a Leaflet map
http://jasonsanford.github.io/leaflet-vector-layers
BSD 2-Clause "Simplified" License
216 stars 61 forks source link

Does leaflet-vector-layers support ArcGIS Rest services? #58

Closed johnwebbcole closed 10 years ago

johnwebbcole commented 10 years ago

I'd like to use the FEMA flood hazards ArcGIS Rest services: https://hazards.fema.gov/femaportal/wps/portal/NFHLWMS since their WMS service doesn't support web mercator projection (EPSG:900913 or EPSG:3857) but their ArcGis Rest service does.

Can leaflet-vector-layers utilize these services?

Thanks

JasonSanford commented 10 years ago

This library is all about vectors, so no WMS support. Sorry.

bmcbride commented 10 years ago

FWIW- You can add that FEMA Flood Hazards ArcGIS Rest service to a Leaflet map by using the esri-leaflet plugin.

var femaFlood = L.esri.dynamicMapLayer("https://hazards.fema.gov/gis/nfhl/rest/services/public/NFHL/MapServer", {
    opacity : 0.5
}).addTo(map);
johnwebbcole commented 10 years ago

Thanks @bmcbride that worked great!