├── .eslintrc.js
├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.yml
│ ├── config.yml
│ └── feature_request.yml
├── stale.yml
└── workflows
│ └── main.yml
├── .gitignore
├── CHANGELOG.md
├── LICENSE
├── OpenStreetMap.json
├── README.md
├── debug
├── README.md
└── edge-of-the-world.html
├── example.png
├── examples
├── basemap-places.html
├── contour-dev.html
├── custom-vtl-dev.html
├── customize-basemap-style.html
├── customize-vtl-style.html
├── gallery-dev.html
├── languages.html
├── open-basemaps.html
├── osm-basemaps.html
├── quickstart-dev.html
├── quickstart-prod.html
├── rtl-language.html
└── worldview.html
├── index.d.ts
├── karma.conf.js
├── package-lock.json
├── package.json
├── profiles
├── base.js
├── debug.js
└── production.js
├── scripts
└── release.sh
├── spec
├── UtilSpec.js
├── VectorBasemapLayerSpec.js
└── VectorTileLayerSpec.js
└── src
├── EsriLeafletVector.js
├── MaplibreGLLayer.js
├── Util.js
├── VectorBasemapLayer.js
└── VectorTileLayer.js
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | extends: 'eslint-config-semistandard',
3 | plugins: ['chai-friendly'],
4 | rules: {
5 | 'no-var': 'off',
6 | 'no-unused-expressions': 0,
7 | 'chai-friendly/no-unused-expressions': 2
8 | },
9 | globals: {
10 | L: false
11 | },
12 | ignorePatterns: ['spec/**/*.js', 'eslintrc.js']
13 | };
14 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.yml:
--------------------------------------------------------------------------------
1 | name: "Bug report"
2 | description: Report an issue with Esri Leaflet Vector
3 | body:
4 | - type: markdown
5 | attributes:
6 | value: |
7 | Thanks for taking the time to fill out this bug report! This is for reporting bugs with Esri Leaflet Vector specifically. If you have an issue with Esri Leaflet itself, please go to https://github.com/Esri/esri-leaflet
8 | - type: textarea
9 | id: bug-description
10 | attributes:
11 | label: Describe the bug
12 | description: Please include a clear and concise description of the bug. If you intend to submit a PR for this issue, tell us in the description. Thanks!
13 | placeholder: Bug description
14 | validations:
15 | required: true
16 | - type: textarea
17 | id: reproduction
18 | attributes:
19 | label: Reproduction
20 | description: A link to a public repository or jsbin (you can start with https://jsbin.com/jexevoy/edit) that reproduces the issue, along with a step by step explanation of how to see the issue. If no reproduction case is provided within a reasonable time-frame, the issue will be closed.
21 | placeholder: Reproduction
22 | validations:
23 | required: true
24 | - type: textarea
25 | id: logs
26 | attributes:
27 | label: Logs
28 | description: "Please include browser console around the time this bug occurred. Please try not to insert an image but copy paste the log text."
29 | render: shell
30 | - type: textarea
31 | id: system-info
32 | attributes:
33 | label: System Info
34 | description: Please include which version of Leaflet you are using, which version of Esri Leaflet you are using, and output of `npx envinfo --system --binaries --browsers --npmPackages "{leaflet,esri-leaflet}"`
35 | render: shell
36 | placeholder: "Leaflet version: `v_._._`. Esri Leaflet version: `v_._._`. Esri Leaflet Vector version: `v_._._`. ..."
37 | validations:
38 | required: true
39 | - type: textarea
40 | id: additional-context
41 | attributes:
42 | label: Additional Information
43 | description: Add any other context about the problem here. If you're are *not* using the CDN, please note what loading/bundling library you are using (webpack, rollup, vite, etc)?
44 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: false
2 | contact_links:
3 | - name: Documentation
4 | url: https://github.com/Esri/esri-leaflet/issues/new/choose
5 | about: To suggest an idea or report an issue with the documentation site, https://developers.arcgis.com/esri-leaflet, please log the issue in the Esri Leaflet repository.
6 | - name: Esri Community
7 | url: https://community.esri.com/t5/esri-leaflet/ct-p/esri-leaflet
8 | about: Ask questions and discuss with other Esri Leaflet users.
9 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.yml:
--------------------------------------------------------------------------------
1 | name: "Feature Request"
2 | description: Suggest an idea for Esri Leaflet Vector
3 | body:
4 | - type: markdown
5 | attributes:
6 | value: |
7 | Thanks for taking the time to request this feature!
8 | - type: textarea
9 | id: problem
10 | attributes:
11 | label: Describe the problem
12 | description: Please provide a clear and concise description the problem this feature would solve. The more information you can provide here, the better.
13 | placeholder: I'm always frustrated when...
14 | validations:
15 | required: true
16 | - type: textarea
17 | id: solution
18 | attributes:
19 | label: Describe the proposed solution
20 | description: Please provide a clear and concise description of what you would like to happen.
21 | placeholder: I would like to see...
22 | validations:
23 | required: true
24 | - type: textarea
25 | id: alternatives
26 | attributes:
27 | label: Alternatives considered
28 | description: "Please provide a clear and concise description of any alternative solutions or features you've considered."
29 | - type: textarea
30 | id: additional-context
31 | attributes:
32 | label: Additional Information
33 | description: Add any other context or screenshots about the feature request here.
--------------------------------------------------------------------------------
/.github/stale.yml:
--------------------------------------------------------------------------------
1 | # Configuration for probot-stale - https://github.com/probot/stale
2 |
3 | # Number of days of inactivity before an Issue or Pull Request becomes stale
4 | daysUntilStale: 30
5 |
6 | # Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7 | # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8 | daysUntilClose: 7
9 |
10 | # Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
11 | onlyLabels: ["Comments Needed"]
12 |
13 | # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
14 | exemptLabels:
15 | - pinned
16 | - security
17 |
18 | # Set to true to ignore issues in a project (defaults to false)
19 | exemptProjects: false
20 |
21 | # Set to true to ignore issues in a milestone (defaults to false)
22 | exemptMilestones: false
23 |
24 | # Set to true to ignore issues with an assignee (defaults to false)
25 | exemptAssignees: false
26 |
27 | # Label to use when marking as stale
28 | staleLabel: stale
29 |
30 | # Comment to post when marking as stale. Set to `false` to disable
31 | markComment: >
32 | This issue has been automatically marked as stale because we're waiting on
33 | more information or details, but have not received any response. It will be
34 | closed if no further activity occurs. Thank you!
35 | # Comment to post when removing the stale label.
36 | # unmarkComment: >
37 | # Your comment here.
38 |
39 | # Comment to post when closing a stale Issue or Pull Request.
40 | # closeComment: >
41 | # This issue was
42 |
43 | # Limit the number of actions per hour, from 1-30. Default is 30
44 | limitPerRun: 30
45 | # Limit to only `issues` or `pulls`
46 | # only: issues
47 |
48 | # Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
49 | # pulls:
50 | # daysUntilStale: 30
51 | # markComment: >
52 | # This pull request has been automatically marked as stale because it has not had
53 | # recent activity. It will be closed if no further activity occurs. Thank you
54 | # for your contributions.
55 |
56 | # issues:
57 | # exemptLabels:
58 | # - confirmed
--------------------------------------------------------------------------------
/.github/workflows/main.yml:
--------------------------------------------------------------------------------
1 | name: CI
2 | on: [push, pull_request]
3 | env:
4 | NODE_VERSION: 16
5 | jobs:
6 | setup:
7 | runs-on: ${{ matrix.os }}
8 | strategy:
9 | matrix:
10 | os: [ubuntu-latest, windows-latest]
11 | steps:
12 | - name: Check out repository
13 | uses: actions/checkout@v3
14 |
15 | - name: Set up Node
16 | uses: actions/setup-node@v3
17 | with:
18 | node-version: ${{ env.NODE_VERSION }}
19 | check-latest: true
20 | cache: npm
21 |
22 | - name: Cache dependencies
23 | id: cache-dependencies
24 | uses: actions/cache@v3
25 | with:
26 | path: node_modules
27 | key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
28 |
29 | - name: Install dependencies
30 | if: steps.cache-dependencies.outputs.cache-hit != 'true'
31 | run: npm ci
32 |
33 | - name: Cache setup
34 | uses: actions/cache@v3
35 | with:
36 | path: ./*
37 | key: ${{ runner.os }}-${{ github.sha }}-setup
38 |
39 | build:
40 | needs: setup
41 | runs-on: ${{ matrix.os }}
42 | strategy:
43 | matrix:
44 | os: [ubuntu-latest, windows-latest]
45 | steps:
46 | - name: Restore setup
47 | uses: actions/cache@v3
48 | with:
49 | path: ./*
50 | key: ${{ runner.os }}-${{ github.sha }}-setup
51 |
52 | - name: Set up Node
53 | uses: actions/setup-node@v3
54 | with:
55 | node-version: ${{ env.NODE_VERSION }}
56 |
57 | - name: Build project
58 | run: npm run build
59 |
60 | - name: Cache build
61 | uses: actions/cache@v3
62 | with:
63 | path: ./*
64 | key: ${{ runner.os }}-${{ github.sha }}-build
65 |
66 | lint:
67 | needs: setup
68 | runs-on: ubuntu-latest
69 | steps:
70 | - name: Restore setup
71 | uses: actions/cache@v3
72 | with:
73 | path: ./*
74 | key: ${{ runner.os }}-${{ github.sha }}-setup
75 |
76 | - name: Set up Node
77 | uses: actions/setup-node@v3
78 | with:
79 | node-version: ${{ env.NODE_VERSION }}
80 |
81 | - name: Run lint task
82 | run: npm run lint
83 |
84 | test:
85 | needs: build
86 | runs-on: ${{ matrix.os || 'ubuntu-latest' }}
87 | strategy:
88 | fail-fast: false
89 | matrix:
90 | include:
91 | - browser: Chrome1280x1024
92 | - browser: FirefoxTouch
93 | - browser: FirefoxNoTouch
94 | - browser: Edge
95 | os: windows-latest
96 | steps:
97 | - name: Restore build
98 | uses: actions/cache@v3
99 | with:
100 | path: ./*
101 | key: ${{ runner.os }}-${{ github.sha }}-build
102 |
103 | - name: Set up Node
104 | uses: actions/setup-node@v3
105 | with:
106 | node-version: ${{ env.NODE_VERSION }}
107 |
108 | - name: Run tests on ${{ matrix.browser }}
109 | run: npm test -- --browsers ${{ matrix.browser }}
110 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 |
6 | # Runtime data
7 | pids
8 | *.pid
9 | *.seed
10 |
11 | # Directory for instrumented libs generated by jscoverage/JSCover
12 | lib-cov
13 |
14 | # Coverage directory used by tools like istanbul
15 | coverage
16 |
17 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
18 | .grunt
19 |
20 | # node-waf configuration
21 | .lock-wscript
22 |
23 | # Compiled binary addons (http://nodejs.org/api/addons.html)
24 | build/Release
25 |
26 | # Dependency directory
27 | node_modules
28 |
29 | # Optional npm cache directory
30 | .npm
31 |
32 | # Optional REPL history
33 | .node_repl_history
34 |
35 | dist/
36 | debug/*.html
37 | !debug/edge-of-the-world.html
38 | !debug/sample.html
39 |
40 | *.code-workspace
41 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to this project will be documented in this file.
4 | This project adheres to [Semantic Versioning](http://semver.org/).
5 |
6 | ## [Upcoming changes][unreleased]
7 |
8 | ## [4.3.0] - 2025-06-03
9 |
10 | - All `osm/*` basemap styles are now deprecated and will produce a warning when used.
11 | - Support for the new `open/*` styles added to replace `osm/*`.
12 | - Assets for `VectorTileLayer` items will now use the CDN to improve performance if possable.
13 |
14 | ## [4.2.7] - 2025-01-02
15 |
16 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `4.7.1` ([#230](https://github.com/Esri/esri-leaflet-vector/pull/230)).
17 |
18 | ### Updated
19 |
20 | - Better console messages when API key is invalid ([#227](https://github.com/Esri/esri-leaflet-vector/pull/227))
21 |
22 | ## [4.2.6] - 2024-12-17
23 |
24 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `4.6.0`.
25 |
26 | ### Fixed
27 |
28 | - Fixed issue where Esri Attribution was not added properly when using vectorBasemapLayer using an item ID ([#229](https://github.com/Esri/esri-leaflet-vector/pull/229))
29 |
30 | ## [4.2.5] - 2024-08-26
31 |
32 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `4.6.0`.
33 |
34 | ## [4.2.4] - 2024-08-21
35 |
36 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `4.5.0`.
37 |
38 | ### Fixed
39 |
40 | - Fixed issue where Esri Attribution was not removed when VectorBasemapLayer was removed ([#208](https://github.com/Esri/esri-leaflet-vector/pull/208))
41 |
42 | ### Updated
43 |
44 | - Updated maplibre-gl dependency to v4 ([#219](https://github.com/Esri/esri-leaflet-vector/pull/219))
45 | - Updated dependencies ([#223](https://github.com/Esri/esri-leaflet-vector/pull/223))
46 |
47 | ## [4.2.3] - 2023-12-07
48 |
49 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `3.3.1`.
50 |
51 | ### Added
52 |
53 | - Added worldview and places params ([#214](https://github.com/Esri/esri-leaflet-vector/pull/214))
54 |
55 | ### Fixed
56 |
57 | - Fixed `wrong listener type: undefined` console warning ([#211](https://github.com/Esri/esri-leaflet-vector/pull/211))
58 |
59 | ## [4.2.2] - 2023-10-23
60 |
61 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `3.3.1`.
62 |
63 | ### Fixed
64 |
65 | - Adds support for RTL language labels by exposing the maplibre `setRTLTextPlugin` method ([#207](https://github.com/Esri/esri-leaflet-vector/pull/207))
66 |
67 | ## [4.2.1] - 2023-10-18
68 |
69 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `3.3.1`.
70 |
71 | ### Updated
72 |
73 | - Updated maplibre-gl dependency to v3 ([#201](https://github.com/Esri/esri-leaflet-vector/pull/201))
74 |
75 | ## [4.2.0] - 2023-10-17
76 |
77 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `2.3.0`.
78 |
79 | ### Added
80 |
81 | - Allow users to set preserveDrawingBuffer in the options ([#199](https://github.com/Esri/esri-leaflet-vector/pull/199))
82 | - Expose MaplibreGLJSLayer variable ([#197](https://github.com/Esri/esri-leaflet-vector/pull/197))
83 |
84 | ### Fixed
85 |
86 | - Token with sprite and glyphs ([#192](https://github.com/Esri/esri-leaflet-vector/pull/192))
87 | - Export of package version ([#187](https://github.com/Esri/esri-leaflet-vector/pull/187))
88 |
89 | ## [4.1.0] - 2023-05-31
90 |
91 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `2.3.0`.
92 |
93 | ### Added
94 |
95 | - Added `load-error` event ([#165](https://github.com/Esri/esri-leaflet-vector/pull/165))
96 | - Added support for the v2 basemap styles service ([#182](https://github.com/Esri/esri-leaflet-vector/pull/182))
97 |
98 | ### Fixed
99 |
100 | - fix default pane for VectorBasemapLayer ([#182](https://github.com/Esri/esri-leaflet-vector/pull/182))
101 |
102 | ### Changed
103 |
104 | - VectorBasemapLayer now inherits from VectorTileLayer, reducing code duplication within this repo. ([#182](https://github.com/Esri/esri-leaflet-vector/pull/182))
105 |
106 | ## [4.0.2] - 2023-04-04
107 |
108 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `2.3.0`.
109 |
110 | ### Fixed
111 |
112 | - Fixed layer invisible at certain zoom levels using minLOD/maxLOD ([#166](https://github.com/Esri/esri-leaflet-vector/pull/166))
113 | - Added `index.d.ts` to release ([#167](https://github.com/Esri/esri-leaflet-vector/pull/167))
114 |
115 | ## [4.0.1] - 2023-02-23
116 |
117 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `2.3.0`.
118 |
119 | ### Fixed
120 |
121 | - Switching basemaps issue ([#162](https://github.com/Esri/esri-leaflet-vector/pull/162))
122 |
123 | ### Updated
124 |
125 | - Updated dependencies ([#163](https://github.com/Esri/esri-leaflet-vector/pull/163))
126 |
127 | ## [4.0.0] - 2022-09-02
128 |
129 | MapLibre GL JS version that is included with this version of Esri Leaflet Vector: `2.3.0`.
130 |
131 | ### Updated
132 |
133 | - Switched to use Maplibre GL JS ([#141](https://github.com/Esri/esri-leaflet-vector/pull/141))
134 |
135 | ## [3.1.5] - 2022-08-23
136 |
137 | ### Fixed
138 |
139 | - Fixed issue where layer is mis-aligned with map when panning the map off screen ([#144](https://github.com/Esri/esri-leaflet-vector/pull/144))
140 |
141 | ### Updated
142 |
143 | - Updated dependencies
144 |
145 | ## [3.1.4] - 2022-08-12
146 |
147 | ### Fixed
148 |
149 | - Added "Powered by Esri" when adding a layer via item ID for consistency ([#135](https://github.com/Esri/esri-leaflet-vector/pull/135))
150 |
151 | ## [3.1.3] - 2022-05-23
152 |
153 | ### Fixed
154 |
155 | - Offset issue when zooming out to levels 0 or 1 ([#127](https://github.com/Esri/esri-leaflet-vector/pull/127))
156 |
157 | ### Updated
158 |
159 | - Updated dependencies
160 |
161 | ## [3.1.2] - 2022-03-03
162 |
163 | ### Added
164 |
165 | - TypeScript types file ([#114](https://github.com/Esri/esri-leaflet-vector/pull/114))
166 |
167 | ### Updated
168 |
169 | - Updated dependencies and changed build-related settings to be consistent with Esri Leaflet ([#122](https://github.com/Esri/esri-leaflet-vector/pull/122))
170 |
171 | ## [3.1.1] - 2021-11-09
172 |
173 | ### Fixed
174 |
175 | - Map panning was broken in some environments due to a specific `mapbox-gl-js` version. Pinning this library's `package.json` specifically to `mapbox-gl-js v1.13.1` fixes the issue. [#105](https://github.com/Esri/esri-leaflet-vector/pull/105)
176 |
177 | ## [3.1.0] - 2021-08-09
178 |
179 | ### Added
180 |
181 | - `L.esri.Vector.vectorTileLayer` has been extended to support vector tiles layers hosted in ArcGIS Enterprise. A new `portalUrl` layer constructor option was added and is intended to be used with the "ITEM_ID" constructor flavor. [#97](https://github.com/Esri/esri-leaflet-vector/pull/97)
182 |
183 | - New README documentation and a developer console warning for `L.esri.Vector.vectorTileLayer` explaining that only services with a Web Mercator `spatialReference` are fully supported. [#95](https://github.com/Esri/esri-leaflet-vector/pull/95)
184 |
185 | - Updated peerDependencies to be more flexible for using v3 of `esri-leaflet`. [#99](https://github.com/Esri/esri-leaflet-vector/pull/99)
186 |
187 | ### Fixed
188 |
189 | - Utility functions used by `L.esri.Vector.vectorTileLayer` have been improved to be more friendly with URL structures and style reformatting assumptions. [#100](https://github.com/Esri/esri-leaflet-vector/pull/100)
190 |
191 | ## [3.0.1] - 2021-06-03
192 |
193 | ### Fixed
194 |
195 | - While formatting the style object when loading a new `L.esri.Vector.vectorTileLayer`, check first if layer layout property exists before accessing. (🙏jag-eagle-technology🙏 [#70](https://github.com/Esri/esri-leaflet-vector/pull/70))
196 |
197 | - Support style items with non-esri source names. [#91](https://github.com/Esri/esri-leaflet-vector/pull/91)
198 |
199 | ### Changed
200 |
201 | - The layer constructor option `apikey` in all lowercase is now supported **and encouraged** in order to be consistent with the rest of esri-leaflet's ecosystem. Note that camel case `apiKey` continues to be allowed since [3.0.0]. [#89](https://github.com/Esri/esri-leaflet-vector/pull/89)
202 |
203 | ## [3.0.0] - 2021-01-25
204 |
205 | ### Breaking
206 |
207 | - `L.esri.Vector.basemap` is now `L.esri.Vector.vectorBasemapLayer` and requires an API key (`apiKey`) or token (`token`).
208 | - `L.esri.Vector.layer` is now `L.esri.Vector.vectorTileLayer`.
209 | - Simplified imports. `mapbox-gl-js v1` continues to be a depedency but is bundled internally with production builds.
210 |
211 | ```html
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 | ```
220 |
221 | ## [2.0.2]
222 |
223 | ### Added
224 |
225 | - New basemaps! 🙏pmacMaps🙏
226 | - `DarkHumanGeography`
227 | - `DarkHumanGeographyDetail`
228 | - `ChartedTerritory`
229 | - `MidCentury`
230 | - `Nova`
231 |
232 | ## [2.0.1]
233 |
234 | ### Fixed
235 |
236 | - Added support for deeper zoom by artificially capping tile requests at zoom level 15.
237 |
238 | ## [2.0.0]
239 |
240 | ### Changed
241 |
242 | - Existing basemaps have been updated to [`v2`](https://www.esri.com/arcgis-blog/products/arcgis-living-atlas/mapping/whats-new-in-esri-vector-basemaps-december-2017/)
243 |
244 | ### Added
245 |
246 | - Esri's [OpenStreetMap Vector basemap](https://www.esri.com/arcgis-blog/products/arcgis-living-atlas/mapping/new-osm-vector-basemap/)
247 |
248 | ### Breaking Change
249 |
250 | - `mapbox-gl-js` is now an external dependency. it is no longer bundled internally.
251 |
252 | ```html
253 |
254 |
255 |
256 |
257 |
258 |
259 | ```
260 |
261 | ## [1.0.7]
262 |
263 | ### Fixed
264 |
265 | - several edge cases that corrupted the current state of the map
266 |
267 | ## [1.0.6]
268 |
269 | ### Changed
270 |
271 | - now using Esri's latest and greatest basemaps
272 |
273 | ### Fixed
274 |
275 | - Ensure that when a tileMap is present in an ArcGIS Pro published tileset, that its url is concatenated correctly [#20](https://github.com/Esri/esri-leaflet-vector/issues/20)
276 |
277 | ## [1.0.5]
278 |
279 | ### Fixed
280 |
281 | - Fixed a regression which caused `L.esri.Vector.Layer` not to honor custom styles applied to generic Esri hosted vector tilesets (example [item](http://www.arcgis.com/home/item.html?id=bd505ce3efff479bb4e87b182f180159))
282 |
283 | ## [1.0.4]
284 |
285 | ### Added
286 |
287 | - `L.esri.Vector.layer` can now be used to display Vector Tile Services published using ArcGIS Pro. (like [this one](http://www.arcgis.com/home/item.html?id=0bac0ffdc8634d9a9bc662bb8fa7547d))
288 |
289 | ## [1.0.3]
290 |
291 | ### Added
292 |
293 | - `L.esri.Vector.layer` object added so that developers can point at any arbitrary ArcGIS Online hosted vector tile source
294 |
295 | ### Fixed
296 |
297 | - trapped situation in which vector style json defines path of sprites/glyphs using fully qualified paths.
298 |
299 | ### Changed
300 |
301 | - made dependency on Leaflet fixed at `1.0.0-beta.2` (until [#47](https://github.com/mapbox/mapbox-gl-leaflet/issues/47) is resolved)
302 | - started linting all the `.js` in the repo
303 |
304 | ## [1.0.2]
305 |
306 | ### Fixed
307 |
308 | - Added three new Vector basemaps. [Mid-Century](http://www.arcgis.com/home/item.html?id=763884983d3544c0a418a97992881fce), [Newspaper](http://www.arcgis.com/home/item.html?id=4f4843d99c34436f82920932317893ae) and [Spring](http://www.arcgis.com/home/item.html?id=267f44f08a844c7abee2b62b00600540).
309 |
310 | ## [1.0.1]
311 |
312 | ### Fixed
313 |
314 | - added .npmignore file to ensure built library is included in npm package.
315 |
316 | ## 1.0.0
317 |
318 | ### Added
319 |
320 | - Initial Release
321 |
322 | [unreleased]: https://github.com/esri/esri-leaflet-vector/compare/v4.2.7...HEAD
323 | [4.2.7]: https://github.com/esri/esri-leaflet-vector/compare/v4.2.6...v4.2.7
324 | [4.2.6]: https://github.com/esri/esri-leaflet-vector/compare/v4.2.5...v4.2.6
325 | [4.2.5]: https://github.com/esri/esri-leaflet-vector/compare/v4.2.4...v4.2.5
326 | [4.2.4]: https://github.com/esri/esri-leaflet-vector/compare/v4.2.3...v4.2.4
327 | [4.2.3]: https://github.com/esri/esri-leaflet-vector/compare/v4.2.2...v4.2.3
328 | [4.2.2]: https://github.com/esri/esri-leaflet-vector/compare/v4.2.1...v4.2.2
329 | [4.2.1]: https://github.com/esri/esri-leaflet-vector/compare/v4.2.0...v4.2.1
330 | [4.2.0]: https://github.com/esri/esri-leaflet-vector/compare/v4.1.0...v4.2.0
331 | [4.1.0]: https://github.com/esri/esri-leaflet-vector/compare/v4.0.2...v4.1.0
332 | [4.0.2]: https://github.com/esri/esri-leaflet-vector/compare/v4.0.1...v4.0.2
333 | [4.0.1]: https://github.com/esri/esri-leaflet-vector/compare/v4.0.0...v4.0.1
334 | [4.0.0]: https://github.com/esri/esri-leaflet-vector/compare/v3.1.5...v4.0.0
335 | [3.1.4]: https://github.com/esri/esri-leaflet-vector/compare/v3.1.3...v3.1.4
336 | [3.1.3]: https://github.com/esri/esri-leaflet-vector/compare/v3.1.2...v3.1.3
337 | [3.1.2]: https://github.com/esri/esri-leaflet-vector/compare/v3.1.0...v3.1.2
338 | [3.1.1]: https://github.com/esri/esri-leaflet-vector/compare/v3.1.0...v3.1.1
339 | [3.1.0]: https://github.com/esri/esri-leaflet-vector/compare/v3.0.1...v3.1.0
340 | [3.0.1]: https://github.com/esri/esri-leaflet-vector/compare/v3.0.0...v3.0.1
341 | [3.0.0]: https://github.com/esri/esri-leaflet-vector/compare/v2.0.2...v3.0.0
342 | [2.0.2]: https://github.com/esri/esri-leaflet-vector/compare/v2.0.1...v2.0.2
343 | [2.0.1]: https://github.com/esri/esri-leaflet-vector/compare/v2.0.0...v2.0.1
344 | [2.0.0]: https://github.com/esri/esri-leaflet-vector/compare/v1.0.7...v2.0.0
345 | [1.0.7]: https://github.com/esri/esri-leaflet-vector/compare/v1.0.6...v1.0.7
346 | [1.0.6]: https://github.com/esri/esri-leaflet-vector/compare/v1.0.5...v1.0.6
347 | [1.0.5]: https://github.com/esri/esri-leaflet-vector/compare/v1.0.4...v1.0.5
348 | [1.0.4]: https://github.com/esri/esri-leaflet-vector/compare/v1.0.3...v1.0.4
349 | [1.0.3]: https://github.com/esri/esri-leaflet-vector/compare/v1.0.2...v1.0.3
350 | [1.0.2]: https://github.com/esri/esri-leaflet-vector/compare/v1.0.1...v1.0.2
351 | [1.0.1]: https://github.com/esri/esri-leaflet-vector/compare/v1.0.0...v1.0.1
352 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Apache License
3 | Version 2.0, January 2004
4 | http://www.apache.org/licenses/
5 |
6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7 |
8 | 1. Definitions.
9 |
10 | "License" shall mean the terms and conditions for use, reproduction,
11 | and distribution as defined by Sections 1 through 9 of this document.
12 |
13 | "Licensor" shall mean the copyright owner or entity authorized by
14 | the copyright owner that is granting the License.
15 |
16 | "Legal Entity" shall mean the union of the acting entity and all
17 | other entities that control, are controlled by, or are under common
18 | control with that entity. For the purposes of this definition,
19 | "control" means (i) the power, direct or indirect, to cause the
20 | direction or management of such entity, whether by contract or
21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
22 | outstanding shares, or (iii) beneficial ownership of such entity.
23 |
24 | "You" (or "Your") shall mean an individual or Legal Entity
25 | exercising permissions granted by this License.
26 |
27 | "Source" form shall mean the preferred form for making modifications,
28 | including but not limited to software source code, documentation
29 | source, and configuration files.
30 |
31 | "Object" form shall mean any form resulting from mechanical
32 | transformation or translation of a Source form, including but
33 | not limited to compiled object code, generated documentation,
34 | and conversions to other media types.
35 |
36 | "Work" shall mean the work of authorship, whether in Source or
37 | Object form, made available under the License, as indicated by a
38 | copyright notice that is included in or attached to the work
39 | (an example is provided in the Appendix below).
40 |
41 | "Derivative Works" shall mean any work, whether in Source or Object
42 | form, that is based on (or derived from) the Work and for which the
43 | editorial revisions, annotations, elaborations, or other modifications
44 | represent, as a whole, an original work of authorship. For the purposes
45 | of this License, Derivative Works shall not include works that remain
46 | separable from, or merely link (or bind by name) to the interfaces of,
47 | the Work and Derivative Works thereof.
48 |
49 | "Contribution" shall mean any work of authorship, including
50 | the original version of the Work and any modifications or additions
51 | to that Work or Derivative Works thereof, that is intentionally
52 | submitted to Licensor for inclusion in the Work by the copyright owner
53 | or by an individual or Legal Entity authorized to submit on behalf of
54 | the copyright owner. For the purposes of this definition, "submitted"
55 | means any form of electronic, verbal, or written communication sent
56 | to the Licensor or its representatives, including but not limited to
57 | communication on electronic mailing lists, source code control systems,
58 | and issue tracking systems that are managed by, or on behalf of, the
59 | Licensor for the purpose of discussing and improving the Work, but
60 | excluding communication that is conspicuously marked or otherwise
61 | designated in writing by the copyright owner as "Not a Contribution."
62 |
63 | "Contributor" shall mean Licensor and any individual or Legal Entity
64 | on behalf of whom a Contribution has been received by Licensor and
65 | subsequently incorporated within the Work.
66 |
67 | 2. Grant of Copyright License. Subject to the terms and conditions of
68 | this License, each Contributor hereby grants to You a perpetual,
69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 | copyright license to reproduce, prepare Derivative Works of,
71 | publicly display, publicly perform, sublicense, and distribute the
72 | Work and such Derivative Works in Source or Object form.
73 |
74 | 3. Grant of Patent License. Subject to the terms and conditions of
75 | this License, each Contributor hereby grants to You a perpetual,
76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 | (except as stated in this section) patent license to make, have made,
78 | use, offer to sell, sell, import, and otherwise transfer the Work,
79 | where such license applies only to those patent claims licensable
80 | by such Contributor that are necessarily infringed by their
81 | Contribution(s) alone or by combination of their Contribution(s)
82 | with the Work to which such Contribution(s) was submitted. If You
83 | institute patent litigation against any entity (including a
84 | cross-claim or counterclaim in a lawsuit) alleging that the Work
85 | or a Contribution incorporated within the Work constitutes direct
86 | or contributory patent infringement, then any patent licenses
87 | granted to You under this License for that Work shall terminate
88 | as of the date such litigation is filed.
89 |
90 | 4. Redistribution. You may reproduce and distribute copies of the
91 | Work or Derivative Works thereof in any medium, with or without
92 | modifications, and in Source or Object form, provided that You
93 | meet the following conditions:
94 |
95 | (a) You must give any other recipients of the Work or
96 | Derivative Works a copy of this License; and
97 |
98 | (b) You must cause any modified files to carry prominent notices
99 | stating that You changed the files; and
100 |
101 | (c) You must retain, in the Source form of any Derivative Works
102 | that You distribute, all copyright, patent, trademark, and
103 | attribution notices from the Source form of the Work,
104 | excluding those notices that do not pertain to any part of
105 | the Derivative Works; and
106 |
107 | (d) If the Work includes a "NOTICE" text file as part of its
108 | distribution, then any Derivative Works that You distribute must
109 | include a readable copy of the attribution notices contained
110 | within such NOTICE file, excluding those notices that do not
111 | pertain to any part of the Derivative Works, in at least one
112 | of the following places: within a NOTICE text file distributed
113 | as part of the Derivative Works; within the Source form or
114 | documentation, if provided along with the Derivative Works; or,
115 | within a display generated by the Derivative Works, if and
116 | wherever such third-party notices normally appear. The contents
117 | of the NOTICE file are for informational purposes only and
118 | do not modify the License. You may add Your own attribution
119 | notices within Derivative Works that You distribute, alongside
120 | or as an addendum to the NOTICE text from the Work, provided
121 | that such additional attribution notices cannot be construed
122 | as modifying the License.
123 |
124 | You may add Your own copyright statement to Your modifications and
125 | may provide additional or different license terms and conditions
126 | for use, reproduction, or distribution of Your modifications, or
127 | for any such Derivative Works as a whole, provided Your use,
128 | reproduction, and distribution of the Work otherwise complies with
129 | the conditions stated in this License.
130 |
131 | 5. Submission of Contributions. Unless You explicitly state otherwise,
132 | any Contribution intentionally submitted for inclusion in the Work
133 | by You to the Licensor shall be under the terms and conditions of
134 | this License, without any additional terms or conditions.
135 | Notwithstanding the above, nothing herein shall supersede or modify
136 | the terms of any separate license agreement you may have executed
137 | with Licensor regarding such Contributions.
138 |
139 | 6. Trademarks. This License does not grant permission to use the trade
140 | names, trademarks, service marks, or product names of the Licensor,
141 | except as required for reasonable and customary use in describing the
142 | origin of the Work and reproducing the content of the NOTICE file.
143 |
144 | 7. Disclaimer of Warranty. Unless required by applicable law or
145 | agreed to in writing, Licensor provides the Work (and each
146 | Contributor provides its Contributions) on an "AS IS" BASIS,
147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148 | implied, including, without limitation, any warranties or conditions
149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150 | PARTICULAR PURPOSE. You are solely responsible for determining the
151 | appropriateness of using or redistributing the Work and assume any
152 | risks associated with Your exercise of permissions under this License.
153 |
154 | 8. Limitation of Liability. In no event and under no legal theory,
155 | whether in tort (including negligence), contract, or otherwise,
156 | unless required by applicable law (such as deliberate and grossly
157 | negligent acts) or agreed to in writing, shall any Contributor be
158 | liable to You for damages, including any direct, indirect, special,
159 | incidental, or consequential damages of any character arising as a
160 | result of this License or out of the use or inability to use the
161 | Work (including but not limited to damages for loss of goodwill,
162 | work stoppage, computer failure or malfunction, or any and all
163 | other commercial damages or losses), even if such Contributor
164 | has been advised of the possibility of such damages.
165 |
166 | 9. Accepting Warranty or Additional Liability. While redistributing
167 | the Work or Derivative Works thereof, You may choose to offer,
168 | and charge a fee for, acceptance of support, warranty, indemnity,
169 | or other liability obligations and/or rights consistent with this
170 | License. However, in accepting such obligations, You may act only
171 | on Your own behalf and on Your sole responsibility, not on behalf
172 | of any other Contributor, and only if You agree to indemnify,
173 | defend, and hold each Contributor harmless for any liability
174 | incurred by, or claims asserted against, such Contributor by reason
175 | of your accepting any such warranty or additional liability.
176 |
177 | END OF TERMS AND CONDITIONS
178 |
179 | APPENDIX: How to apply the Apache License to your work.
180 |
181 | To apply the Apache License to your work, attach the following
182 | boilerplate notice, with the fields enclosed by brackets "[]"
183 | replaced with your own identifying information. (Don't include
184 | the brackets!) The text should be enclosed in the appropriate
185 | comment syntax for the file format. We also recommend that a
186 | file or class name and description of purpose be included on the
187 | same "printed page" as the copyright notice for easier
188 | identification within third-party archives.
189 |
190 | Copyright (c) 2014-2024 Environmental Systems Research Institute, Inc.
191 |
192 | Licensed under the Apache License, Version 2.0 (the "License");
193 | you may not use this file except in compliance with the License.
194 | You may obtain a copy of the License at
195 |
196 | http://www.apache.org/licenses/LICENSE-2.0
197 |
198 | Unless required by applicable law or agreed to in writing, software
199 | distributed under the License is distributed on an "AS IS" BASIS,
200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201 | See the License for the specific language governing permissions and
202 | limitations under the License.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Esri Leaflet Vector Tile Plugin
2 |
3 | [![npm version][npm-img]][npm-url]
4 | [](https://raw.githubusercontent.com/Esri/esri-leaflet-vector/master/LICENSE)
5 |
6 | [npm-img]: https://img.shields.io/npm/v/esri-leaflet-vector.svg?style=flat-square
7 | [npm-url]: https://www.npmjs.com/package/esri-leaflet-vector
8 |
9 | > A plugin for Esri Leaflet to visualize Vector tiles from ArcGIS Online.
10 |
11 | ## Example
12 |
13 | Take a look at the [live demo](https://developers.arcgis.com/esri-leaflet/samples/showing-a-basemap/).
14 |
15 | 
16 |
17 | ```html
18 |
19 |
20 |