This repository was archived by the owner on Oct 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
readd support for Cluster.FeatureLayer and fix the plugin #158
Merged
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
52c9cff
i think thats it
jgravois 21593e2
all ES6
jgravois 0052cff
:nail_care:
jgravois 3d74bc0
whoops
jgravois 4848ca6
not sure what i was even thinking
jgravois 4af2fe5
update samples
gavinr-maps ddb3af8
update samples - cluster
gavinr-maps a70ad35
fix es6 reference to Util
gavinr-maps File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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/[email protected]/dist/MarkerCluster.Default.css" | ||
| integrity="sha512-BBToHPBStgMiw0lD4AtkRIZmdndhB6aQbXpX7omcrXeG2PauGBl2lzq2xUZTxaLxYz5IDHlmneCZ1IJ+P3kYtQ==" | ||
| crossorigin=""> | ||
| <link rel="stylesheet" type="text/css" href="https://unpkg.com/[email protected]/dist/MarkerCluster.css" | ||
| integrity="sha512-RLEjtaFGdC4iQMJDbMzim/dOvAu+8Qp9sw7QE4wIMYcg2goVoivzwgSZq9CsIxp4xKAZPKh5J2f2lOko2Ze6FQ==" | ||
| crossorigin=""> | ||
| <script src="https://unpkg.com/[email protected]/dist/leaflet.markercluster.js" | ||
| integrity="sha512-MQlyPV+ol2lp4KodaU/Xmrn+txc1TP15pOBF/2Sfre7MRsA/pB4Vy58bEqe9u7a7DczMLtU5wT8n7OblJepKbg==" | ||
| crossorigin=""></script> | ||
| <script src="https://unpkg.com/[email protected]/dist/esri-leaflet-cluster.js" | ||
| integrity="sha512-2/Nwrks+A2omjKeWrF4TKFLIrUbAhSl8EDEm6xunuwXXYqMoJI71PZtlW0/vqt9d3DOyP1md/bzAnNH2KuAhaQ==" | ||
| 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([45.526, -122.667], 13); | ||
| L.esri.basemapLayer('Streets').addTo(map); | ||
|
|
||
| // draw the predefined Portland Heritage Tree symbols | ||
| L.esri.Cluster.featureLayer({ | ||
| url: 'https://services.arcgis.com/rOo16HdIMeOBI4Mb/arcgis/rest/services/Heritage_Trees_Portland/FeatureServer/0' | ||
| }).addTo(map); | ||
| </script> | ||
|
|
||
| </body> | ||
| </html> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right now this throws an error. fixed by Esri/esri-leaflet-cluster#31.
i couldn't find a layer to test with, but it looks like
this.createNewLayeris only really useful for displaying polygon services rendered using proportional marker symbols.