vue-yandex-maps
Version:
Yandex Maps component for Vue 3
1 lines • 9.81 kB
Source Map (JSON)
{"version":3,"file":"vue-yandex-maps.esm.js","sources":["../src/utils.ts","../src/constants.ts","../src/use/actions.ts","../src/Map.ts","../src/Marker.ts","../src/Collection.ts","../src/Clusterer.ts","../src/ObjectManager.ts","../src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"names":["actionsKey","Symbol","emitter","events","ymapReady","scriptIsNotAttached","pluginInstalledGlobal","constructor","this","$on","eventName","fn","push","filter","eventFn","$emit","event","forEach","ymapLoader","settings","Promise","res","rej","window","ymaps","document","getElementById","yandexMapScript","createElement","apiKey","lang","version","coordorder","debug","enterprise","link","setAttribute","head","appendChild","onload","ready","readyCallback","onerror","convertToNumbers","item","Array","isArray","map","DEFAULT_MAP_EVENTS","DEFAULT_MARKER_EVENTS","useGeoObjectActions","updateFunction","isObjectManager","addGeoObjectTimeout","deleteGeoObjectTimeout","markersToAdd","markersToDelete","addGeoObject","marker","markerJson","clearTimeout","setTimeout","deleteGeoObject","Map","defineComponent","name","props","coordinates","type","required","zoom","Number","default","bounds","behaviors","controls","detailedControls","Object","validator","val","every","includes","mapType","String","panOptions","undefined","options","emits","setup","emit","slots","expose","isReady","ref","pluginOptions","utils.emitter","inject","ymapId","Math","round","random","arr","action","length","geoObject","geoObjects","provide","utils.actionsKey","init","value","center","add","e","keys","controlName","remove","utils.ymapLoader","watch","panTo","setZoom","setBounds","setType","h","class","id","style","Marker","markerId","properties","radius","coords","computed","isBalloonOpen","feature","geometry","balloonContentLayout","component","templateLayoutFactory","createClass","build","superclass","call","clear","GeoObject","onMounted","onBeforeUnmount","setCoordinates","Teleport","to","Collection","collection","GeoObjectCollection","Clusterer","clusterer","ObjectManager","objectManager","featureArray","isPluginInstalled","loadYmap","YandexMap","YandexMarker","YandexCollection","YandexClusterer","YandexObjectManager","index","install","app"],"mappings":"yFAGO,MAAMA,EAAaC,SAoCnB,MAAMC,EAAU,IAnCvB,MACEC,OA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