Skip to Content

JavaScript File

URL: https://karta-abhazii.ru/wp-content/plugins/as-yandex-map//js/app.js?ver=c7522ce359dc
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Sat, 20 Jan 2024 21:09:12 GMT
Download Time: Less than a second
Cookies: None
Size: 11 KB
HTTP Headers:  7 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1var catId, flag, ymaps,adjustСenter=typeof adjustcenter !== 'undefined'?(adjustcenter==1? true:false):false;

2try {

3 if (typeof ymaps !== 'undefined') {

4 if(document.getElementById('app')){

5

6 ymaps.ready(initializeMap);

7 }

8 } else {

9 throw new Error("Объект ymaps не существует.");

10 }

11} catch (error) {

12 console.error("Ошибка: " + error.message);

13

14}

15

16function initializeMap() {

17 if (label_position[0] === "" ) {

18 label_position = [10,40];

19 } else {

20 label_position = [Number(label_position[0]), Number(label_position[1])];

21}

22var elMapMaim= document.getElementById("app");

23 var myMap = new ymaps.Map(elMapMaim,

24 { center: loc,

25 zoom: zoom,

26 controls: [new ymaps.control.ZoomControl({ options: { size: "small", position: { right:label_position[0] , bottom:label_position[1] } } })] },

27 { suppressMapOpenBlock: true,

28 yandexMapDisablePoiInteractivity: true }

29 )

30 myMap.behaviors.disable("scrollZoom");

31

32 var objectManager = new ymaps.ObjectManager({ clusterize: true, gridSize: 32 });

33

34 objectManager.clusters.options.set({

35 preset: "islands#blueClusterIcons",

36 balloonContentLayout: "cluster#balloonCarousel",

37 clusterBalloonPagerSize: 5,

38 clusterBalloonPanelMaxMapArea: 0,

39 balloonContentLayoutWidth: 400,

40 balloonContentLayoutHeight: 300,

...

</html>