-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Styles 5.0 * rename to the more expected @protomaps/basemaps * rename Theme object to Flavor * unify styles API on a single function * viewer app uses styles 5.0 API * more renamings, rename IIFE script name * update CHANGELOG and version checker for styles 5.0 * rename generate_styles -> generate_style
- Loading branch information
Showing
13 changed files
with
110 additions
and
283 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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" crossorigin="anonymous"> | ||
<script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js" crossorigin="anonymous"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/pmtiles.js"></script> | ||
<script src="https://unpkg.com/protomaps-themes-base@4.5.0/dist/protomaps-themes-base.js"></script> | ||
<script src="https://unpkg.com/@protomaps/basemaps@5.0.0/dist/basemaps.js"></script> | ||
<style> | ||
body { | ||
margin: 0; | ||
|
@@ -36,7 +36,7 @@ | |
attribution: "<a href='https://openstreetmap.org/copyright'>© OpenStreetMap Contributors</a>" | ||
}, | ||
}, | ||
layers: protomaps_themes_base.default("example_source", "light", "en") | ||
layers: basemaps.layers("example_source", basemaps.namedFlavor("light"), {lang:"en"}) | ||
}, | ||
}); | ||
|
||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" crossorigin="anonymous"> | ||
<script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js" crossorigin="anonymous"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/pmtiles.js"></script> | ||
<script src="https://unpkg.com/protomaps-themes-base@4.5.0/dist/protomaps-themes-base.js"></script> | ||
<script src="https://unpkg.com/@protomaps/basemaps@5.0.0/dist/basemaps.js"></script> | ||
<style> | ||
body { | ||
margin: 0; | ||
|
@@ -42,7 +42,7 @@ | |
} | ||
}, | ||
layers: [ | ||
...protomaps_themes_base.noLabels("example_source", "grayscale"), | ||
...basemaps.layers("example_source", basemaps.namedFlavor("grayscale")), | ||
{ | ||
"id": "overture_places", | ||
"source": "overture_places", | ||
|
@@ -62,7 +62,7 @@ | |
] | ||
} | ||
}, | ||
...protomaps_themes_base.labels("example_source", "grayscale", "en") | ||
...basemaps.layers("example_source", basemaps.namedFlavor("grayscale"), {lang:"en", labelsOnly: true}) | ||
] | ||
}, | ||
}); | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" crossorigin="anonymous"> | ||
<script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js" crossorigin="anonymous"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/pmtiles.js"></script> | ||
<script src="https://unpkg.com/protomaps-themes-base@4.5.0/dist/protomaps-themes-base.js"></script> | ||
<script src="https://unpkg.com/@protomaps/basemaps@5.0.0/dist/basemaps.js"></script> | ||
<style> | ||
body { | ||
margin: 0; | ||
|
@@ -36,7 +36,7 @@ | |
attribution: "<a href='https://openstreetmap.org/copyright'>© OpenStreetMap Contributors</a>" | ||
}, | ||
}, | ||
layers: protomaps_themes_base.default("example_source", "black", "zh-Hant") | ||
layers: basemaps.layers("example_source", basemaps.namedFlavor("black"), {lang:"zh-Hant"}) | ||
}, | ||
}); | ||
</script> | ||
|
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.