mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-07-04 17:10:47 +02:00
Switched to vue-leaflet implementation for web client.
This commit is contained in:
12
cmd/mtwebmapper/client/src/plugins/leaflet.js
Normal file
12
cmd/mtwebmapper/client/src/plugins/leaflet.js
Normal file
@ -0,0 +1,12 @@
|
||||
import Vue from 'vue';
|
||||
import { LMap, LTileLayer, LMarker, LPopup } from 'vue2-leaflet';
|
||||
import Vue2LeafletMarkerCluster from 'vue2-leaflet-markercluster'
|
||||
import 'leaflet/dist/leaflet.css';
|
||||
import "leaflet.markercluster/dist/MarkerCluster.css";
|
||||
import "leaflet.markercluster/dist/MarkerCluster.Default.css";
|
||||
|
||||
Vue.component('l-map', LMap);
|
||||
Vue.component('l-tile-layer', LTileLayer);
|
||||
Vue.component('l-marker', LMarker);
|
||||
Vue.component('l-popup', LPopup);
|
||||
Vue.component('l-marker-cluster', Vue2LeafletMarkerCluster);
|
Reference in New Issue
Block a user