Skip to content

Commit 51968f1

Browse files
tabiodunBradenM
authored andcommitted
- Fix google maps support
(cherry picked from commit 28a2f7a8758605ea6940726435f672443ac3a5ff)
1 parent bfad55c commit 51968f1

File tree

5 files changed

+771
-4
lines changed

5 files changed

+771
-4
lines changed

src/components/locations/LocationViewer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as L from 'leaflet';
77
import { nextTick } from 'vue';
88
import { useI18n } from 'vue-i18n';
99
import { mapTileLayer } from '@/utils/map';
10+
import '@/external/Leaflet.GoogleMutant/index';
1011
1112
export default {
1213
name: 'LocationViewer',
@@ -61,8 +62,7 @@ export default {
6162
zoomControl: false,
6263
}).setView([35.746_512_259_918_5, -96.411_509_631_256_56], 3);
6364
if (props.useGoogleMaps) {
64-
// L.gridLayer.googleMutant({ type: 'roadmap' }).addTo(this.map); TODO: Fix google maps view
65-
createTileLayer().addTo(map.value);
65+
L.gridLayer.googleMutant({ type: 'roadmap' }).addTo(map.value);
6666
} else {
6767
createTileLayer().addTo(map.value);
6868
}

0 commit comments

Comments
 (0)