diff --git a/docs/assets/examples/maplibre-gl-draw.png b/docs/assets/examples/mapbox-gl-draw.png similarity index 100% rename from docs/assets/examples/maplibre-gl-draw.png rename to docs/assets/examples/mapbox-gl-draw.png diff --git a/test/examples/maplibre-gl-draw.html b/test/examples/mapbox-gl-draw.html similarity index 83% rename from test/examples/maplibre-gl-draw.html rename to test/examples/mapbox-gl-draw.html index ee87410d35..9d0b0fa813 100644 --- a/test/examples/maplibre-gl-draw.html +++ b/test/examples/mapbox-gl-draw.html @@ -31,9 +31,10 @@ font-size: 13px; } - +
@@ -46,10 +47,9 @@ import * as turf from 'https://esm.sh/@turf/turf@7.1.0'; - import {MapLibreDraw} from 'https://esm.sh/jsr/@birkskyum/maplibre-gl-draw@^2'; - MapLibreDraw.constants.classes.CONTROL_BASE = 'maplibregl-ctrl'; - MapLibreDraw.constants.classes.CONTROL_PREFIX = 'maplibregl-ctrl-'; - MapLibreDraw.constants.classes.CONTROL_GROUP = 'maplibregl-ctrl-group'; + MapboxDraw.constants.classes.CONTROL_BASE = 'maplibregl-ctrl'; + MapboxDraw.constants.classes.CONTROL_PREFIX = 'maplibregl-ctrl-'; + MapboxDraw.constants.classes.CONTROL_GROUP = 'maplibregl-ctrl-group'; const map = new maplibregl.Map({ container: 'map', // container id @@ -59,7 +59,7 @@ zoom: 12 // starting zoom }); - const draw = new MapLibreDraw({ + const draw = new MapboxDraw({ displayControlsDefault: false, controls: { polygon: true,