diff --git a/.gitignore b/.gitignore
index d7c6ab32..bc9bf190 100644
--- a/.gitignore
+++ b/.gitignore
@@ -51,3 +51,6 @@ stats.json
.docusaurus
build
.playwright-mcp
+
+# Copied into the engine packages when they are built
+packages/*/assets
diff --git a/assets/templates/add-polygons.njk b/assets/templates/add-polygons.njk
index deb39600..896355b1 100644
--- a/assets/templates/add-polygons.njk
+++ b/assets/templates/add-polygons.njk
@@ -39,7 +39,6 @@
{% block pageScripts %}
-
@@ -132,7 +131,6 @@
new defra.InteractiveMap('map', {
behaviour: 'inline',
- mapProvider: defra.maplibreProvider(),
mapStyle: {
url: 'https://tiles.openfreemap.org/styles/liberty',
attribution: 'OpenFreeMap © OpenMapTiles Data from OpenStreetMap',
diff --git a/assets/templates/add-symbols.njk b/assets/templates/add-symbols.njk
index a6570f70..5cb82a5c 100644
--- a/assets/templates/add-symbols.njk
+++ b/assets/templates/add-symbols.njk
@@ -39,7 +39,6 @@
{% block pageScripts %}
-
@@ -108,7 +107,6 @@
new defra.InteractiveMap('map', {
behaviour: 'inline',
- mapProvider: defra.maplibreProvider(),
mapStyle: {
url: 'https://tiles.openfreemap.org/styles/liberty',
attribution: 'OpenFreeMap © OpenMapTiles Data from OpenStreetMap',
diff --git a/assets/templates/basic-map.njk b/assets/templates/basic-map.njk
index db9c1c6e..7372eaf0 100644
--- a/assets/templates/basic-map.njk
+++ b/assets/templates/basic-map.njk
@@ -37,12 +37,10 @@
{% block pageScripts %}
-
-
-
@@ -54,7 +53,6 @@
const interactiveMap = new defra.InteractiveMap('map', {
behaviour: 'hybrid',
- mapProvider: defra.maplibreProvider(),
mapStyle: {
id: 'default',
url: 'https://tiles.openfreemap.org/styles/liberty',
diff --git a/assets/templates/marker-panel.njk b/assets/templates/marker-panel.njk
index 60f3000d..13d6e57e 100644
--- a/assets/templates/marker-panel.njk
+++ b/assets/templates/marker-panel.njk
@@ -37,7 +37,6 @@
{% block pageScripts %}
-
-
-
-
@@ -113,7 +112,6 @@
const map = new defra.InteractiveMap('map', {
behaviour: 'inline',
- mapProvider: defra.maplibreProvider(),
mapStyle: {
url: 'https://tiles.openfreemap.org/styles/liberty',
attribution: 'OpenFreeMap © OpenMapTiles Data from OpenStreetMap',
diff --git a/assets/templates/style-switcher.njk b/assets/templates/style-switcher.njk
index d48cac90..e6baf1be 100644
--- a/assets/templates/style-switcher.njk
+++ b/assets/templates/style-switcher.njk
@@ -38,7 +38,6 @@
{% block pageScripts %}
-
-
-
-
@@ -218,7 +215,6 @@ Use the datasets plugin to overlay GeoJSON polygon data on your map. This exampl
new defra.InteractiveMap('my-map', {
behaviour: 'inline',
- mapProvider: defra.maplibreProvider(),
mapStyle: {
url: 'https://your-tile-url/style.json',
logo: '/path/to/logo.svg',
diff --git a/docs/examples/add-symbols.mdx b/docs/examples/add-symbols.mdx
index 2c2b41b9..309159c2 100644
--- a/docs/examples/add-symbols.mdx
+++ b/docs/examples/add-symbols.mdx
@@ -13,7 +13,6 @@ Use the datasets plugin to overlay GeoJSON data on your map. Each dataset can co
language: 'js',
code: `
import InteractiveMap from '@defra/interactive-map'
- import maplibreProvider from '@defra/interactive-map/providers/maplibre'
import createDatasetsPlugin from '@defra/interactive-map/plugins/datasets'
import createMapKeyPlugin from '@defra/interactive-map/plugins/map-key'
@@ -81,7 +80,6 @@ Use the datasets plugin to overlay GeoJSON data on your map. Each dataset can co
new InteractiveMap('my-map', {
behaviour: 'inline',
- mapProvider: maplibreProvider(),
mapStyle: {
url: 'https://your-tile-url/style.json',
logo: '/path/to/logo.svg',
@@ -100,7 +98,6 @@ Use the datasets plugin to overlay GeoJSON data on your map. Each dataset can co
language: 'html',
code: `
-
@@ -170,7 +167,6 @@ Use the datasets plugin to overlay GeoJSON data on your map. Each dataset can co
new defra.InteractiveMap('my-map', {
behaviour: 'inline',
- mapProvider: defra.maplibreProvider(),
mapStyle: {
url: 'https://your-tile-url/style.json',
logo: '/path/to/logo.svg',
diff --git a/docs/examples/basic-map.mdx b/docs/examples/basic-map.mdx
index 7a7372e5..49cfef06 100644
--- a/docs/examples/basic-map.mdx
+++ b/docs/examples/basic-map.mdx
@@ -13,11 +13,9 @@ Embed an interactive map directly on the page, allowing users to explore and int
language: 'js',
code: `
import InteractiveMap from '@defra/interactive-map'
- import maplibreProvider from '@defra/interactive-map/providers/maplibre'
new InteractiveMap('my-map', {
behaviour: 'inline',
- mapProvider: maplibreProvider(),
mapStyle: {
url: 'https://your-tile-url/style.json',
logo: '/path/to/logo.svg',
@@ -35,13 +33,11 @@ Embed an interactive map directly on the page, allowing users to explore and int
language: 'html',
code: `
-
-
-
@@ -174,7 +171,6 @@ This example configures snapping (`snapLayers`) against the base map style's woo
const interactiveMap = new defra.InteractiveMap('my-map', {
behaviour: 'inline',
- mapProvider: defra.maplibreProvider(),
mapStyle: {
url: 'https://your-tile-url/style.json',
logo: '/path/to/logo.svg',
diff --git a/docs/examples/place-marker.mdx b/docs/examples/place-marker.mdx
index 30f73ac3..75a62e75 100644
--- a/docs/examples/place-marker.mdx
+++ b/docs/examples/place-marker.mdx
@@ -3,12 +3,9 @@ import CodeTabs from '../../demo/js/codeTabs.js'
# Place a marker to continue
-Use the interact plugin's `placeMarker` mode to let users drop a location pin on the map before continuing a journey.
+Use the interact plugin's `placeMarker` mode to let users drop a location pin on the map before continuing a journey. Two patterns work together in this example, depending on the screen size.
-Two patterns work together in this example:
-
-- **Hybrid behaviour with built-in back and continue** — on mobile the map opens fullscreen and the `backAndContinue` option renders Back and Continue buttons inside the map. The Continue button is enabled declaratively via `continueEnabledWhen` once a marker has been placed.
-- **External Continue button for inline** — when the map is inline (tablet/desktop), a Continue button sits outside the map container. It uses `app:opened`, `app:closed`, and `app:fullscreenchange` to show and hide in sync with the map's display mode, and `interact:markerchange` to enable once a marker is placed.
+On mobile, the map opens fullscreen and the `backAndContinue` option adds Back and Continue buttons inside the map, with Continue enabled by `continueEnabledWhen` once a marker is placed. On tablet and desktop, the map is inline and a Continue button sits outside it. That button uses `app:opened`, `app:closed` and `app:fullscreenchange` to show and hide with the map, and `interact:markerchange` to enable once a marker is placed.