<template lang="pug">
yandexMap(
:settings="MapConfig.settings"
:coords="MapConfig.coords"
:zoom="MapConfig.zoom"
:behaviors="MapConfig.behaviors"
:controls="MapConfig.controls"
)
</template>
<script>
'use strict';
import {yandexMap, ymapMarker} from 'vue-yandex-maps';
export default {
data() {
return {
MapConfig: {
settings : {
apiKey : 'типа ключик',
lang : 'ru_RU',
coordorder: 'latlong',
version : '2.1',
},
coords : [
55.753960,
37.620393,
],
zoom : 10,
behaviors: [
'scrollZoom',
],
controls : [
'fullscreenControl',
'geolocationControl',
'routeEditor',
'rulerControl',
'typeSelector',
'zoomControl',
'routeButtonControl',
'routePanelControl',
],
},
};
},
components: {
yandexMap,
ymapMarker,
},
};
</script>