35 Commits

Author SHA1 Message Date
chcederquist
9b89ab4eb5
Updated title and descriptions of docs (#9692)
Co-authored-by: Florian Bischof <design.falke@gmail.com>
2025-05-09 18:47:17 +02:00
Esha Nair
1dcd7f9c2e
Replace unpkg with jsDelivr in documentation (#9663) 2025-04-25 14:42:55 +02:00
Florian Bischof
712ae1542a
Refactor docs for ESM (#9624) 2025-04-10 20:18:44 +02:00
Jon Koops
119785e3a9
Enable no-var linting rule and fix issues (#8602) 2022-10-20 21:18:26 +02:00
Jon Koops
c33a57ca3a
Enable prefer-template linting rule and fix issues (#8587) 2022-10-16 23:58:24 +02:00
Jonas Wagner
81a1336978
Quick-start: fix link in code block. (#8415)
Co-authored-by: Florian Bischof <design.falke@gmail.com>
2022-09-30 21:42:53 +02:00
Grant
c2324e52e2
Use preferred tile.openstreetmap.org URL (#8418)
Now that tile.openstreetmap.org supports HTTP/2 + HTTP/3 the old (a|b|c).tile.openstreetmap.org is no longer recommended.

Use tile.openstreetmap.org directly is faster and will likely result in a better cache hit ratio.

Signed-off-by: Grant Slater <git@firefishy.com>

Signed-off-by: Grant Slater <git@firefishy.com>
2022-08-28 11:31:45 +02:00
Florian Bischof
20654cd159
Replace Mapbox with OpenStreetMap (#7818)
* Replace Mapbox with OpenStreetMap

Replace Mapbox with OpenStreetMap

* Revert Gemfile

* Replace blanks with tabs

* Fix lint

* Replace Mapbox with OSM

* Add OSM Tile Usage Policy link

* typo: productive→production

Co-authored-by: Iván Sánchez Ortega <ivan@sanchezortega.es>
2022-05-27 11:33:15 +03:00
Florian Bischof
999a074eb8
Add Ukraini dialog (#8177)
* Add Ukraini dialog

* Fix lint

* Make it more keyboard-user friendly

* Change close element to button and add dialog as first element
2022-04-25 11:57:58 +03:00
Iván Sánchez Ortega
c94faa201a
Taking down the website. (#8025)
* Taking down the website.

* Prevent linting errors on moved-away website stuff

* Add quote style

* fix css

* rm duplicated templates

Co-authored-by: falke-design <design.falke@gmail.com>
2022-02-27 13:22:37 +01:00
Robert Linder
4a5f192094
Compress thumbnails for tutorials (#8002) 2022-02-14 18:51:25 +01:00
Alexandria Quelle
d00a8b28ae
Added clarification (#7819)
Added a sentence to indicate when the code examples switch from HTML and CSS to JS for clarity
2021-12-02 21:32:14 +02:00
Vladimir Agafonkin
80279dd98b
Lint examples (#7827)
* lint examples

* examples lint fixes

* more lint fixes

* fixes

* final fixes
2021-11-29 16:31:54 +02:00
Falke Design
1e7f27331a
Simplifiy examples (#7816)
* Replace mymap with map

* Updated quick-start - added variables

* Add variable names

Add variable names

* Replace blanks with tabs
2021-11-26 22:17:11 +02:00
Alexandria Quelle
d03a2d09aa
Minor typos (#7758) 2021-11-09 09:42:40 +01:00
William Entriken
671c7c8bcb
Use "map" as HTML element id everywhere (#7696) 2021-10-29 16:34:17 +03:00
Andreas Hubel
c0bf09ba32
fix outdated osm attribution texts + url (#7345) 2020-12-08 14:17:22 +02:00
Josh Erb
cd12b94a4d
[docs] correct Mapbox examples' tileSize (#6995)
* update debug pages

* correct tileSize & zoomOffset for all Mapbox examples
2020-02-14 01:49:03 +01:00
ekbarber
3acb64d900 fix broken url template link (#6982)
went to the right page, but an invalid heading
2020-01-27 15:49:17 +02:00
Dan Swick
8733108138 update mapbox attribution URL (#6922) 2019-12-02 11:49:16 +02:00
Josh Erb
4a8e55b0c4 [docs] Update Doc Examples to Use Modern Endpoint (#6905)
* update the first few examples

* Update all legacy Static API urls with modern URLs

* Add missing map??

* oops stray png

* Remove example.html
2019-11-28 08:41:37 +02:00
Ilya Ilyankou
c7b3dbdb00 Minor spelling corrections in Docs/Tutorials (#6464)
* continous -> continuous

* Minor spelling and styling corrections

* occured -> occurred

* mosly -> mostly

* Update Map.js
2019-01-09 14:02:37 +01:00
Pieter Vander Vennet
60638e0427 Docs(quickstart): explicitly highlight attribution requirement (#6261) 2018-08-01 10:53:27 +04:00
Elias Ojala
ba891024d2 osm link 2018-05-04 15:18:40 +03:00
Elias Ojala
d00a355d6b mapbox link 2018-05-04 15:17:41 +03:00
Elias Ojala
7c6a7b0d6b creativecommons https 2018-05-04 15:17:13 +03:00
Guillaume Rischard
b22ca31716 Optimised images. Saved 1.1 MB out of 9.7 MB. 22.3% per file on average (up to 62%) (#5936) 2017-11-22 15:33:24 +01:00
Andrew
748905cbf5 Fix docs redirects (#5824)
* use redirected.html instead of jekyll-redirect-from

* modify redirected.html to preserve url hases

* fix links in zoom-levels example

- use relative links instead of absolute
- remove hardcoded version in lins and refer to latest version docs instead

* fix hash in choropleth example

* fix links in geojson example

 - use relative links instead of absolute

* fix absolute link in quick-start example

* fix link in video-overlay example

* fix link in map-panes example

* fix link in wms example

* fix link in geojson example

* fix relative reference links
2017-10-05 15:34:04 +02:00
Colby Rogness
caab168894 docs(quick-start): add warning to place CSS before JS to quick start example (#5610) (#5614) 2017-07-09 11:00:30 +02:00
Iván Sánchez Ortega
90a8d88460 Tutorials: rewrite the paragraph about the mapbox map IDs, hopefully it reads easier now. (#5572) 2017-06-21 12:36:12 +02:00
Iván Sánchez Ortega
561b7f737b Add subresource integrity information & scripts (#5468)
* Add subresource integrity information & scripts

* Include the integrity hashes in all tutorials also

* Change wording of one of the build scripts
2017-04-19 14:56:14 +02:00
Lyzi Diamond
7391e308cc rotate access tokens (#5338) 2017-02-16 09:44:50 +02:00
Iván Sánchez Ortega
c7a129ba9c Docs: Fix leatest/latest leaflet version 2016-09-30 14:37:01 +02:00
Iván Sánchez Ortega
60b35c0920 Docs: Make the latest leaflet version into a Jekyll variable, for templates. (#4986) 2016-09-30 15:10:33 +03:00
Iván Sánchez Ortega
6ee1a6eb65 Clean up docs/examples - one directory per tutorial, more templating. (#4965)
* Clean up docs/examples - one directory per tutorial, more templating.

* Fix some URLs

* tutorials: update rendered CDN links to 1.0.0 and L.circle signature (#4975)

* Update shown CDN links to 1.0.0

As initially done in PR #4967, but just for the rendered links (what the users sees), as actual link / script tags are already updated.

* DOCS update L.circle to new syntax

in quick-start tutorial, following PR #4974.

* DOCS update L.circle to new syntak (example src)

updated L.circle to new signature (radius as an option instead of 2nd parameter).

* tutorials: use L.geoJSON new syntax (#4983)

* tutorials: use new syntax L.geoJSON

for consistency with recommended factory new syntax (`L.geoJSON` instead of legacy `L.geoJson`).
As done in PR #4933 for docstrings.

* tutorials: L.geoJSON new syntax in script

* Renamed several files to directory/index.md
2016-09-30 13:56:05 +02:00