czydojade/resources/ts/components/map.ts
2018-09-16 18:52:02 +02:00

20 lines
631 B
TypeScript

import { LMap, LTileLayer, LMarker } from 'vue2-leaflet';
import Vue from 'vue';
import * as L from 'leaflet'
import 'leaflet/dist/leaflet.css'
import * as iconRetinaUrl from 'leaflet/dist/images/marker-icon-2x.png';
import * as iconUrl from 'leaflet/dist/images/marker-icon.png';
import * as shadowUrl from 'leaflet/dist/images/marker-shadow.png';
delete L.Icon.Default.prototype._getIconUrl;
L.Icon.Default.mergeOptions({ iconRetinaUrl, iconUrl, shadowUrl });
Vue.component('LMap', LMap);
Vue.component('LTileLayer', LTileLayer);
Vue.component('LMarker', LMarker);
export { LMap, LTileLayer, LMarker } from 'vue2-leaflet';