diff --git a/plugin-designs/country-posters/countries-map.vue b/plugin-designs/country-posters/countries-map.vue index d8447bdb8..3383fde38 100644 --- a/plugin-designs/country-posters/countries-map.vue +++ b/plugin-designs/country-posters/countries-map.vue @@ -101,11 +101,8 @@ function _syncHitboxFilter(m, filter) { function loadPoster() { if (!_posterPromise) { _posterPromise = import('@map/composables/poster/useMapPoster.js') - .then(m => m.useMapPoster({ - sourceMap: () => map.value, - mapboxToken: mapboxToken.value, - styleUrl: () => map.value?.getStyle()?.sprite?.replace(/\/sprite.*$/, '') || profileConfig?.value?.style - })) + // useMapPoster(getSourceMap) takes the map ACCESSOR, not an options object + .then(m => m.useMapPoster(() => map.value)) } return _posterPromise } @@ -2229,12 +2226,15 @@ onBeforeUnmount(() => { /> +