This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from jgravois/fix-cluster
readd support for Cluster.FeatureLayer and fix the plugin
- Loading branch information
Showing
18 changed files
with
159 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8 /> | ||
<title>Simple FeatureLayer</title> | ||
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | ||
|
||
<!-- Load Leaflet from CDN--> | ||
<link rel="stylesheet" href="../node_modules/leaflet/dist/leaflet.css" /> | ||
<script src="../node_modules/leaflet/dist/leaflet-src.js"></script> | ||
|
||
<!-- Load Esri Leaflet --> | ||
<script src="../node_modules/esri-leaflet/dist/esri-leaflet-debug.js"></script> | ||
|
||
<link rel="stylesheet" type="text/css" | ||
href="https://unpkg.com/leaflet.markercluster@1.4.1/dist/MarkerCluster.Default.css" | ||
integrity="sha512-BBToHPBStgMiw0lD4AtkRIZmdndhB6aQbXpX7omcrXeG2PauGBl2lzq2xUZTxaLxYz5IDHlmneCZ1IJ+P3kYtQ==" | ||
crossorigin=""> | ||
<link rel="stylesheet" type="text/css" href="https://unpkg.com/leaflet.markercluster@1.4.1/dist/MarkerCluster.css" | ||
integrity="sha512-RLEjtaFGdC4iQMJDbMzim/dOvAu+8Qp9sw7QE4wIMYcg2goVoivzwgSZq9CsIxp4xKAZPKh5J2f2lOko2Ze6FQ==" | ||
crossorigin=""> | ||
<script src="https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js" | ||
integrity="sha512-MQlyPV+ol2lp4KodaU/Xmrn+txc1TP15pOBF/2Sfre7MRsA/pB4Vy58bEqe9u7a7DczMLtU5wT8n7OblJepKbg==" | ||
crossorigin=""></script> | ||
<script src="https://unpkg.com/esri-leaflet-cluster@2.1.0/dist/esri-leaflet-cluster.js" | ||
integrity="6kP8f+Bh/wHsZ4mxFtTp7ePZRV90MlvKZQ+g6IJL6F31o6ntkU/P4UiIG01hHtSB" | ||
crossorigin=""></script> | ||
|
||
<!-- Load compiled Esri Leaflet Renderers --> | ||
<script src="../dist/esri-leaflet-renderers-debug.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> | ||
/* | ||
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([37.837, -122.479], 5); | ||
L.esri.basemapLayer('Streets').addTo(map); | ||
|
||
// draw the predefined Portland Heritage Tree symbols | ||
L.esri.Cluster.featureLayer({ | ||
url: 'https://sampleserver6.arcgisonline.com/arcgis/rest/services/Earthquakes_Since1970/MapServer/0' | ||
}).addTo(map); | ||
</script> | ||
|
||
</body> | ||
</html> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8 /> | ||
<title>Ignore Renderer Test</title> | ||
<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> | ||
|
||
<!-- Load Esri Leaflet --> | ||
<script src="../node_modules/esri-leaflet/dist/esri-leaflet-debug.js"></script> | ||
|
||
<!-- Load Esri Leaflet Renderers --> | ||
<!-- This will hook into Esri Leaflet and draw the predefined Portland Neighborhoods --> | ||
<script src="../dist/esri-leaflet-renderers-debug.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([45.537, -122.653], 11); | ||
L.esri.basemapLayer('Gray').addTo(map); | ||
|
||
L.esri.featureLayer({ | ||
url: 'https://services.arcgis.com/rOo16HdIMeOBI4Mb/arcgis/rest/services/Heritage_Trees_Portland/FeatureServer/0', | ||
ignoreRenderer: true | ||
}).addTo(map); | ||
|
||
</script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.