@@ -7,7 +7,7 @@ import { ToggleCompare } from "vue-maplibre-compare";
77import { oauthClient } from " @/api/auth" ;
88import ' vue-maplibre-compare/dist/vue-maplibre-compare.css'
99import { addProtocol , AttributionControl , Popup } from " maplibre-gl" ;
10- import type { StyleSpecification , Map , ResourceType } from " maplibre-gl" ;
10+ import type { StyleSpecification , Map } from " maplibre-gl" ;
1111import { useTheme } from ' vuetify' ;
1212import { Protocol } from " pmtiles" ;
1313import { storeToRefs } from " pinia" ;
@@ -152,7 +152,7 @@ watch(() => appStore.openSidebars, () => {
152152 setAttributionControlStyle ();
153153});
154154
155- const transformRequest = (url : string , _resourceType ? : ResourceType ) => {
155+ const transformRequest = (url : string ) => {
156156 // Only add auth headers to our own tile requests
157157 if (url .includes (import .meta .env .VITE_APP_API_ROOT )) {
158158 return {
@@ -163,7 +163,6 @@ const transformRequest = (url: string, _resourceType?: ResourceType) => {
163163 return { url };
164164}
165165
166- // @ts-ignore for "Type instantiation is excessively deep and possibly infinite"
167166const mapStyleA: Ref <StyleSpecification | string > = ref (mapStore .currentBasemap ?.style as StyleSpecification );
168167watch (isComparing , (newVal ) => {
169168 if (! newVal && mapStore .map ) {
0 commit comments