Skip to content

Commit 7e9cf35

Browse files
committed
fix(Geo Coordinates Converter): fix marker display
Fix #392
1 parent 89975dc commit 7e9cf35

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/tools/geo-coordinates-converter/geo-coordinates-converter.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,19 @@ import { convertFrom } from './geo-coordinates-converter.service';
66
import { objectArrayToData } from '@/utils/objectarray.export';
77
import { useQueryParam, useQueryParamOrStorage } from '@/composable/queryParams';
88
import proj4 from 'proj4';
9+
910
import L from 'leaflet';
1011
import 'leaflet/dist/leaflet.css';
1112
13+
import markerIconUrl from 'leaflet/dist/images/marker-icon.png';
14+
import markerIconRetinaUrl from 'leaflet/dist/images/marker-icon-2x.png';
15+
import markerShadowUrl from 'leaflet/dist/images/marker-shadow.png';
16+
17+
L.Icon.Default.prototype.options.iconUrl = markerIconUrl;
18+
L.Icon.Default.prototype.options.iconRetinaUrl = markerIconRetinaUrl;
19+
L.Icon.Default.prototype.options.shadowUrl = markerShadowUrl;
20+
L.Icon.Default.imagePath = '';
21+
1222
const { t } = useI18n();
1323
1424
const decimal = reactive({

0 commit comments

Comments
 (0)