From 94e27294ad9d5f197f02c2a8bfa5acc0a9f1acf5 Mon Sep 17 00:00:00 2001 From: Birk Skyum <74932975+birkskyum@users.noreply.github.com> Date: Thu, 21 Nov 2024 09:17:45 +0100 Subject: [PATCH] Add example of maplibre-gl-draw (#5086) * Add example of maplibre-gl-draw * changelog * use latest v2 * use latest * use latest turf * fixes * don't revert title --- CHANGELOG.md | 1 - ...apbox-gl-draw.png => maplibre-gl-draw.png} | Bin ...box-gl-draw.html => maplibre-gl-draw.html} | 36 +++++++++--------- 3 files changed, 19 insertions(+), 18 deletions(-) rename docs/assets/examples/{mapbox-gl-draw.png => maplibre-gl-draw.png} (100%) rename test/examples/{mapbox-gl-draw.html => maplibre-gl-draw.html} (69%) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4bae87f82..248fc33a15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,6 @@ ## main ### ✨ Features and improvements - - ⚠️ Change the return type of `on` method to return a `Subscription` to allow for easy unsubscribe ([#5080](https://github.com/maplibre/maplibre-gl-js/pull/5080)) - _...Add new stuff here..._ diff --git a/docs/assets/examples/mapbox-gl-draw.png b/docs/assets/examples/maplibre-gl-draw.png similarity index 100% rename from docs/assets/examples/mapbox-gl-draw.png rename to docs/assets/examples/maplibre-gl-draw.png diff --git a/test/examples/mapbox-gl-draw.html b/test/examples/maplibre-gl-draw.html similarity index 69% rename from test/examples/mapbox-gl-draw.html rename to test/examples/maplibre-gl-draw.html index 24546bedf7..ee87410d35 100644 --- a/test/examples/mapbox-gl-draw.html +++ b/test/examples/maplibre-gl-draw.html @@ -1,8 +1,8 @@ - Show drawn polygon area - + Draw polygon with maplibre-gl-draw + @@ -31,23 +31,25 @@ font-size: 13px; } - - - -
-
-

Draw a polygon using the draw tools.

-
-
+ href="https://esm.sh/jsr/@birkskyum/maplibre-gl-draw@^2/dist/maplibre-gl-draw.css" + /> +
+
+

Draw a polygon using the draw tools.

+
+
+ +