aboutsummaryrefslogtreecommitdiff
path: root/src/map/core/MapView.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/core/MapView.jsx')
-rw-r--r--src/map/core/MapView.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/core/MapView.jsx b/src/map/core/MapView.jsx
index 6733bdde..99c84b3c 100644
--- a/src/map/core/MapView.jsx
+++ b/src/map/core/MapView.jsx
@@ -2,6 +2,7 @@
import mapboxglRtlTextUrl from '@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.min?url';
import 'maplibre-gl/dist/maplibre-gl.css';
import maplibregl from 'maplibre-gl';
+import { googleProtocol } from 'maplibre-google-maps';
import React, {
useRef, useLayoutEffect, useEffect, useState,
} from 'react';
@@ -17,6 +18,7 @@ element.style.height = '100%';
element.style.boxSizing = 'initial';
maplibregl.setRTLTextPlugin(mapboxglRtlTextUrl);
+maplibregl.addProtocol('google', googleProtocol);
export const map = new maplibregl.Map({
container: element,