diff --git a/src/YMap.js b/src/YMap.js index 64fde3a..4f01764 100755 --- a/src/YMap.js +++ b/src/YMap.js @@ -326,9 +326,15 @@ export default { if (this.ymapEventBus.scriptIsNotAttached) { const yandexMapScript = document.createElement('SCRIPT'); - const { apiKey = '', lang = 'ru_RU', version = '2.1' } = Object.assign({}, this.$options.pluginOptions, this.settings); + const { + apiKey = '', + lang = 'ru_RU', + version = '2.1', + coordorder = 'latlong' + } = { ...this.$options.pluginOptions, ...this.settings }; const mode = this.debug ? 'debug' : 'release'; - const mapLink = this.mapLink || `https://api-maps.yandex.ru/${version}/?lang=${lang}${ apiKey && `&apikey=${apiKey}` }&mode=${mode}`; + const settings = `lang=${lang}${ apiKey && `&apikey=${apiKey}` }&mode=${mode}&coordorder=${coordorder}` + const mapLink = this.mapLink || `https://api-maps.yandex.ru/${version}/?${settings}`; yandexMapScript.setAttribute('src', mapLink); yandexMapScript.setAttribute('async', ''); yandexMapScript.setAttribute('defer', '');