fix: maplibre rtl import
parent
e2ca11c9cc
commit
75e63b0b11
|
|
@ -1,11 +1,10 @@
|
||||||
<script lang="ts" module>
|
<script lang="ts" module>
|
||||||
import mapboxRtlUrl from '@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.min.js?url';
|
|
||||||
import { addProtocol, setRTLTextPlugin } from 'maplibre-gl';
|
import { addProtocol, setRTLTextPlugin } from 'maplibre-gl';
|
||||||
import { Protocol } from 'pmtiles';
|
import { Protocol } from 'pmtiles';
|
||||||
|
|
||||||
let protocol = new Protocol();
|
let protocol = new Protocol();
|
||||||
void addProtocol('pmtiles', protocol.tile);
|
void addProtocol('pmtiles', protocol.tile);
|
||||||
void setRTLTextPlugin(mapboxRtlUrl, true);
|
void setRTLTextPlugin('@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.min.js', true);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue