Skip to content

Commit

Permalink
Merge pull request #1189 from Esri/cacheable-feature-grid
Browse files Browse the repository at this point in the history
Cacheable feature grid
  • Loading branch information
patrickarlt authored Apr 21, 2020
2 parents 9fcf39a + 1b0bbdc commit e98b714
Show file tree
Hide file tree
Showing 7 changed files with 3,403 additions and 3,901 deletions.
636 changes: 327 additions & 309 deletions CHANGELOG.md

Large diffs are not rendered by default.

69 changes: 43 additions & 26 deletions debug/sample.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,43 @@
<!DOCTYPE html>
<html>
<html>
<head>
<meta charset=utf-8 />
<meta charset="utf-8" />
<title>Esri Leaflet Debugging Sample</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>

<!-- Load Leaflet -->
<link rel="stylesheet" href="../node_modules/leaflet/dist/leaflet.css" />
<script src="../node_modules/leaflet/dist/leaflet-src.js"></script>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin=""
/>

<!-- Make sure you put this AFTER Leaflet's CSS -->
<script
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
crossorigin=""
></script>

<!-- Load Esri Leaflet from source-->
<script src="../dist/esri-leaflet-debug.js"></script>

<style>
body {
margin:0;
padding:0;
margin: 0;
padding: 0;
}

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

#info-pane {
Expand All @@ -36,25 +51,27 @@
</style>
</head>
<body>
<div id="map"></div>
<div id="info-pane" class="leaflet-bar">
<label>
sample application for debugging
</label>
</div>

<div id="map"></div>
<div id="info-pane" class="leaflet-bar">
<label>
sample application for debugging
</label>
</div>

<script>
/*
<script>
/*
make a copy of this file in the same folder if you'd like git to ignore your local changes
*/
var map = L.map('map').setView([40, -100], 4);
L.esri.basemapLayer('Topographic').addTo(map);
var map = L.map("map").setView([43.5, -98.5], 6);

var fl = L.esri.featureLayer({
url:'http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3'
}).addTo(map);
</script>
L.esri.basemapLayer("Topographic").addTo(map);

var fl = L.esri
.featureLayer({
url:
"https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/flash_flood_warnings_2002_2012/FeatureServer/0"
})
.addTo(map);
</script>
</body>
</html>
</html>
Loading

0 comments on commit e98b714

Please sign in to comment.