Skip to content

Instantly share code, notes, and snippets.

@GISDev01
Created February 21, 2016 16:09
Show Gist options
  • Save GISDev01/024d58a63d65134eac0b to your computer and use it in GitHub Desktop.
Save GISDev01/024d58a63d65134eac0b to your computer and use it in GitHub Desktop.
esri-leaflet Issue #748 debugging
<html>
<head>
<meta charset=utf-8 />
<title>Hurricane Layer Test</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- Load Leaflet from CDN-->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v1.0.0-beta.2/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet/v1.0.0-beta.2/leaflet.js"></script>
<!-- Load Esri Leaflet from CDN -->
<script src="//cdn.jsdelivr.net/leaflet.esri/2.0.0-beta.7/esri-leaflet.js"></script>
<style>
body { margin:0; padding:0; }
#map { position: absolute; top:0; bottom:0; right:0; left:0; }
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = L.map('map').setView([37.71, -99.88], 4);
L.esri.basemapLayer('Gray').addTo(map);
L.esri.dynamicMapLayer({
url: '//server.arcgisonline.com/ArcGIS/rest/services/Specialty/Soil_Survey_Map/MapServer',
opacity: 0.5
}).addTo(map);
L.esri.dynamicMapLayer({
url: 'https://tmservices1.esri.com/arcgis/rest/services/LiveFeeds/Hurricane_Active/MapServer/',
layers:[4]
}).addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment