- npm updates (stabele axios version) + adaption in axios config - remove maps route from src/router/index.ts
26 lines
870 B
TypeScript
26 lines
870 B
TypeScript
import { Component, Vue } from "vue-facing-decorator";
|
|
import MapComponent from "@/components/map/map.component.vue";
|
|
// import { Marker, MapOptions, Control, icon, LatLngBoundsExpression } from "leaflet";
|
|
import { MapOptions } from "leaflet";
|
|
|
|
// const DEFAULT_BASE_LAYER_NAME = "BaseLayer";
|
|
// const DEFAULT_BASE_LAYER_URL = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
|
|
// const DEFAULT_BASE_LAYER_ATTRIBUTION = '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors';
|
|
|
|
@Component({
|
|
name: "MapViewComponent",
|
|
components: {
|
|
MapComponent,
|
|
},
|
|
})
|
|
export default class MapViewComponent extends Vue {
|
|
public mapOptions: MapOptions = {
|
|
center: [48.208174, 16.373819],
|
|
zoom: 3,
|
|
zoomControl: false,
|
|
};
|
|
|
|
// public onMapInitialized(newItem: string) {
|
|
// console.log(newItem);
|
|
// }
|
|
}
|