diff --git a/examples/contour-dev.html b/examples/contour-dev.html
index 4293c57..7efdb2d 100644
--- a/examples/contour-dev.html
+++ b/examples/contour-dev.html
@@ -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);
diff --git a/examples/custom-vtl-dev.html b/examples/custom-vtl-dev.html
index c472379..c732a10 100644
--- a/examples/custom-vtl-dev.html
+++ b/examples/custom-vtl-dev.html
@@ -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);
diff --git a/examples/gallery-dev.html b/examples/gallery-dev.html
index af62713..e6a562e 100644
--- a/examples/gallery-dev.html
+++ b/examples/gallery-dev.html
@@ -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
diff --git a/examples/quickstart-dev.html b/examples/quickstart-dev.html
index a4f2909..954b846 100644
--- a/examples/quickstart-dev.html
+++ b/examples/quickstart-dev.html
@@ -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);