diff --git a/package.json b/package.json index 092e8545..95bf8c99 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,10 @@ "types": "./dist/runtime/lib/util/index.d.ts", "import": "./dist/runtime/lib/util/index.js" }, + "./lib/basemaps": { + "types": "./dist/runtime/composables/useBasemapLayers.d.ts", + "import": "./dist/runtime/composables/useBasemapLayers.js" + }, "./apps/admin": { "types": "./dist/runtime/apps/admin/index.d.ts", "import": "./dist/runtime/apps/admin/index.js" @@ -124,6 +128,7 @@ "@maplibre/maplibre-gl-geocoder": "1.9.0", "@mdi/font": "7.4.47", "@observablehq/plot": "0.6.17", + "@protomaps/basemaps": "5.7.0", "@turf/centroid": "7.3.0", "@vue/apollo-composable": "4.2.2", "@vue/apollo-option": "4.2.2", @@ -145,7 +150,6 @@ "maplibre-gl": "5.2.0", "mixpanel-browser": "2.61.2", "nuxt-csurf": "1.6.5", - "protomaps-themes-base": "1.3.1", "tiny-emitter": "2.1.0", "unstorage": "1.15.0", "vega": "6.2.0", diff --git a/src/runtime/apps/stations/basemap-control.vue b/src/runtime/apps/stations/basemap-control.vue index 206cb065..e66228e8 100644 --- a/src/runtime/apps/stations/basemap-control.vue +++ b/src/runtime/apps/stations/basemap-control.vue @@ -25,7 +25,7 @@ interface Props { } withDefaults(defineProps(), { - modelValue: 'carto' + modelValue: 'protomaps-grayscale' }) defineEmits<{ diff --git a/src/runtime/apps/stations/level-editor.vue b/src/runtime/apps/stations/level-editor.vue index 78f75f89..4f8049d2 100644 --- a/src/runtime/apps/stations/level-editor.vue +++ b/src/runtime/apps/stations/level-editor.vue @@ -235,7 +235,7 @@ const _emit = defineEmits<{ }>() const level = ref(new Level(props.value).setDefaults()) -const basemap = ref('carto') +const basemap = ref('protomaps-grayscale') const showGeojsonEditor = ref(false) const geojsonError = ref(null) const geojsonGeometryBuffer = ref('') diff --git a/src/runtime/apps/stations/level-map.vue b/src/runtime/apps/stations/level-map.vue index a1cf2dea..2afac675 100644 --- a/src/runtime/apps/stations/level-map.vue +++ b/src/runtime/apps/stations/level-map.vue @@ -7,9 +7,10 @@