Skip to content

Commit c7af44e

Browse files
authored
Ensure line-dasharray has at least two elements [#502] (#504)
* Ensure line-dasharray has at least two elements [#502] * This caused boundaries to not appear on maplibre-native. * styles 5.5.1 [#502]
1 parent e84b2a5 commit c7af44e

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

examples/basic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@5.0.1/dist/maplibre-gl.css" crossorigin="anonymous">
66
<script src="https://unpkg.com/maplibre-gl@5.0.1/dist/maplibre-gl.js" crossorigin="anonymous"></script>
77
<script src="https://unpkg.com/pmtiles@4.2.1/dist/pmtiles.js"></script>
8-
<script src="https://unpkg.com/@protomaps/basemaps@5.5.0/dist/basemaps.js"></script>
8+
<script src="https://unpkg.com/@protomaps/basemaps@5.5.1/dist/basemaps.js"></script>
99
<style>
1010
body {
1111
margin: 0;

examples/data_sandwich.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@5.0.1/dist/maplibre-gl.css" crossorigin="anonymous">
66
<script src="https://unpkg.com/maplibre-gl@5.0.1/dist/maplibre-gl.js" crossorigin="anonymous"></script>
77
<script src="https://unpkg.com/pmtiles@4.2.1/dist/pmtiles.js"></script>
8-
<script src="https://unpkg.com/@protomaps/basemaps@5.5.0/dist/basemaps.js"></script>
8+
<script src="https://unpkg.com/@protomaps/basemaps@5.5.1/dist/basemaps.js"></script>
99
<style>
1010
body {
1111
margin: 0;

examples/theme_language.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@5.0.1/dist/maplibre-gl.css" crossorigin="anonymous">
66
<script src="https://unpkg.com/maplibre-gl@5.0.1/dist/maplibre-gl.js" crossorigin="anonymous"></script>
77
<script src="https://unpkg.com/pmtiles@4.2.1/dist/pmtiles.js"></script>
8-
<script src="https://unpkg.com/@protomaps/basemaps@5.5.0/dist/basemaps.js"></script>
8+
<script src="https://unpkg.com/@protomaps/basemaps@5.5.1/dist/basemaps.js"></script>
99
<style>
1010
body {
1111
margin: 0;

styles/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@protomaps/basemaps",
3-
"version": "5.5.0",
3+
"version": "5.5.1",
44
"description": "Protomaps basemap style for MapLibre GL",
55
"type": "module",
66
"main": "dist/cjs/index.cjs",

styles/src/base_layers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ export function nolabels_layers(
10781078
"line-dasharray": [
10791079
"step",
10801080
["zoom"],
1081-
["literal", [2]],
1081+
["literal", [2, 0]],
10821082
4,
10831083
["literal", [2, 1]],
10841084
],
@@ -1096,7 +1096,7 @@ export function nolabels_layers(
10961096
"line-dasharray": [
10971097
"step",
10981098
["zoom"],
1099-
["literal", [2]],
1099+
["literal", [2, 0]],
11001100
4,
11011101
["literal", [2, 1]],
11021102
],

0 commit comments

Comments
 (0)