diff --git a/index.html b/index.html index 7683f46..98ba6ab 100644 --- a/index.html +++ b/index.html @@ -52,6 +52,8 @@

maxZoom="23" drawMode drawMany + basemap="MapboxSatellite" + showCentreMarker osCopyright="© Crown copyright and database rights 2024 OS (0)100024857" osProxyEndpoint="https://api.editor.planx.dev/proxy/ordnance-survey" /> diff --git a/src/components/my-map/index.ts b/src/components/my-map/index.ts index 7fed3a8..6999567 100644 --- a/src/components/my-map/index.ts +++ b/src/components/my-map/index.ts @@ -493,6 +493,7 @@ export class MyMap extends LitElement { }); map.addLayer(geojsonLayer); + geojsonLayer.setZIndex(1001); if (geojsonSource.getFeatures().length > 0) { // fit map to extent of geojson features, overriding default zoom & center @@ -703,6 +704,7 @@ export class MyMap extends LitElement { }); map.addLayer(markerLayer); + markerLayer.setZIndex(1001); }; // show a marker at a point