Skip to content

Commit

Permalink
Merge pull request #222 from gavinr-maps/demos-version-console-fix
Browse files Browse the repository at this point in the history
fix version display for maplibregl v4
  • Loading branch information
gavinr-maps authored Aug 21, 2024
2 parents 490ad6c + 782b781 commit bc02912
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/contour-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"L.version": L.version,
"L.esri.VERSION": L.esri.VERSION,
"L.esri.Vector.VERSION": L.esri.Vector.VERSION,
"maplibregl.version": maplibregl.version
"maplibregl.version": maplibregl.version || maplibregl.getVersion() // at maplibre-gl@4, must call getVersion
});

var map = L.map("map", {}).setView([34.0739, -118.2400], 15);
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-vtl-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"L.version": L.version,
"L.esri.VERSION": L.esri.VERSION,
"L.esri.Vector.VERSION": L.esri.Vector.VERSION,
"maplibregl.version": maplibregl.version
"maplibregl.version": maplibregl.version || maplibregl.getVersion() // at maplibre-gl@4, must call getVersion
});

var map = L.map("map", {}).setView([34.0522, -118.2437], 15);
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"L.version": L.version,
"L.esri.VERSION": L.esri.VERSION,
"L.esri.Vector.VERSION": L.esri.Vector.VERSION,
"maplibregl.version": maplibregl.version
"maplibregl.version": maplibregl.version || maplibregl.getVersion() // at maplibre-gl@4, must call getVersion
});

// deeper than zoom level 15, missing tiles may be encountered
Expand Down
2 changes: 1 addition & 1 deletion examples/quickstart-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"L.version": L.version,
"L.esri.VERSION": L.esri.VERSION,
"L.esri.Vector.VERSION": L.esri.Vector.VERSION,
"maplibregl.version": maplibregl.version
"maplibregl.version": maplibregl.version || maplibregl.getVersion() // at maplibre-gl@4, must call getVersion
});

var map = L.map("map", {}).setView([34.0522, -118.2437], 15);
Expand Down

0 comments on commit bc02912

Please sign in to comment.