{"id":347936,"date":"2016-06-21T07:24:37","date_gmt":"2016-06-21T07:24:37","guid":{"rendered":"http:\/\/www.mcs.od.ua\/?page_id=347936"},"modified":"2023-09-07T17:51:52","modified_gmt":"2023-09-07T14:51:52","slug":"kontakty","status":"publish","type":"page","link":"https:\/\/www.mcs.od.ua\/ru\/kontakty\/","title":{"rendered":"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b"},"content":{"rendered":"<p><!--vcv no format--><\/p>\n<div class=\"vce-row-container\" data-vce-boxed-width=\"true\">\n<div id=\"el-c14335d6\" class=\"vce-row vce-row--col-gap-30 vce-row-full-height vce-row-columns--stretch vce-row-content--top\" data-vce-do-apply=\"all el-c14335d6\">\n<div class=\"vce-content-background-container\"><\/div>\n<div class=\"vce-row-content\" data-vce-element-content=\"true\">\n<div id=\"el-c20f9fde\" class=\"vce-col vce-col--md-30p vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-first vce-col--lg-first vce-col--xl-first\">\n<div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background el-c20f9fde\">\n<div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-c20f9fde\">\n<div class=\"vce-text-block\">\n<div id=\"el-8aee117e\" class=\"vce-text-block-wrapper vce\" data-vce-do-apply=\"all el-8aee117e\">\n<h3>\u041e\u0434\u0435\u0441\u0441\u0430<\/h3>\n<p style=\"font-size: 16px;\"><a href=\"tel:+380674803013\">+38 (067) 480 30 13<\/a><\/p>\n<p style=\"font-size: 16px;\"><a href=\"mailto:lkw@mcs.od.ua\">lkw@mcs.od.ua<\/a><\/p>\n<p>\u0443\u043b. \u0426\u0435\u0440\u043a\u043e\u0432\u043d\u0430\u044f, 19, \u043e\u0444\u0438\u0441 302, 65026<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"el-a998d97f\" class=\"vce-col vce-col--md-70p vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last\">\n<div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background el-a998d97f\">\n<div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-a998d97f\">\n<div class=\"vce-raw-html\">\n<div id=\"el-db1facf9\" class=\"vce-raw-html-wrapper\" data-vce-do-apply=\"all el-db1facf9\">\t\t\t<div id=\"huge_it_google_map430583_container\">\r\n\t\t\t\t<div id=\"huge_it_google_map430583\"\r\n\t\t\t\t     style=\"position:relative !important;height:300px; width:100%;\r\n\t\t\t\t\t     border-radius:0px !important;\r\n\t\t\t\t     \t\t\t\t\t     float:left !important;\r\n\t\t\t\t\t     margin:0px 0px 0px 0px !important;\r\n\t\t\t\t\t     \">\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t<style>\r\n\t\t\t\t#huge_it_google_map430583 img {\r\n\t\t\t\t\tmax-width: none;\r\n\t\t\t\t\tvisibility: visible !important;\r\n\t\t\t\t}\r\n\t\t\t<\/style>\r\n\t\t\t<script>\r\n\t\t\t\tjQuery(document).ready(function () {\r\n\t\t\t\t\tvar marker = [];\r\n\t\t\t\t\tvar polygone = [];\r\n\t\t\t\t\tvar polyline = [];\r\n\t\t\t\t\tvar polylinepoints;\r\n\t\t\t\t\tvar newpolylinecoords = [];\r\n\t\t\t\t\tvar polygonpoints;\r\n\t\t\t\t\tvar polygoncoords = [];\r\n\t\t\t\t\tvar newcircle = [];\r\n\t\t\t\t\tvar infowindow = [];\r\n\t\t\t\t\tvar newcirclemarker = [];\r\n\t\t\t\t\tvar circlepoint;\r\n\t\t\t\t\tvar width = jQuery(\"#huge_it_google_map430583\").width();\r\n\t\t\t\t\tvar height = jQuery(\"#huge_it_google_map430583\").height();\r\n\r\n\t\t\t\t\tfunction bindInfoWindow(marker, map, infowindow, description, info_type) {\r\n\t\t\t\t\t\tgoogle.maps.event.addListener(marker, 'click', function () {\r\n\t\t\t\t\t\t\tinfowindow.setContent(description);\r\n\t\t\t\t\t\t\tinfowindow.open(map, marker);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tjQuery(document).on(\"click tap drag scroll\", function (e) {\r\n\t\t\t\t\t\tif (window.matchMedia('(max-width:768px)').matches) {\r\n\t\t\t\t\t\t\tvar container = jQuery(\"#huge_it_google_map430583\");\r\n\t\t\t\t\t\t\tif (!container.is(e.target) && container.has(e.target).length === 0) {\r\n\t\t\t\t\t\t\t\tfront_end_map.setOptions({\r\n\t\t\t\t\t\t\t\t\tdraggable: false,\r\n\t\t\t\t\t\t\t\t\tscrollwheel: false,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfront_end_map.setOptions({\r\n\t\t\t\t\t\t\t\t\tdraggable: true,\r\n\t\t\t\t\t\t\t\t\tscrollwheel: true,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t})\r\n\t\t\t\t\tvar div = parseInt(width) \/ parseInt(height);\r\n\t\t\t\t\tjQuery(window).on(\"resize\", function () {\r\n\t\t\t\t\t\tvar newwidth = jQuery(\"#huge_it_google_map430583\").width();\r\n\t\t\t\t\t\tvar newheight = parseInt(newwidth) \/ parseInt(div) + \"px\";\r\n\t\t\t\t\t\tjQuery(\"#huge_it_google_map430583\").height(newheight);\r\n\t\t\t\t\t})\r\n\r\n\t\t\t\t\tvar center_lat = 46.4863351;\r\n\t\t\t\t\tvar center_lng = 30.7410164;\r\n\t\t\t\t\tvar center_coords = new google.maps.LatLng(center_lat, center_lng);\r\n\t\t\t\t\tvar frontEndMapOptions = {\r\n\t\t\t\t\t\tzoom: parseInt(17),\r\n\t\t\t\t\t\tcenter: center_coords,\r\n\t\t\t\t\t\tdisableDefaultUI: true,\r\n\t\t\t\t\t\tpanControl: true,\r\n\t\t\t\t\t\tzoomControl: true,\r\n\t\t\t\t\t\tmapTypeControl: true,\r\n\t\t\t\t\t\tscaleControl: false,\r\n\t\t\t\t\t\tstreetViewControl: false,\r\n\t\t\t\t\t\toverviewMapControl: true,\r\n\t\t\t\t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP,\r\n\t\t\t\t\t\tminZoom:0,\r\n\t\t\t\t\t\tmaxZoom:22\t\t\t\t\t}\r\n\t\t\t\t\tvar front_end_map = new google.maps.Map(document.getElementById('huge_it_google_map430583'), frontEndMapOptions)\r\n\r\n\t\t\t\t\tif (window.matchMedia('(max-width:768px)').matches) {\r\n\t\t\t\t\t\tfront_end_map.setOptions({\r\n\t\t\t\t\t\t\tdraggable: false,\r\n\t\t\t\t\t\t\tscrollwheel: false,\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfront_end_map.setOptions({\r\n\t\t\t\t\t\t\tdraggable: true,\r\n\t\t\t\t\t\t\tscrollwheel: true,\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\tvar front_end_data = {\r\n\t\t\t\t\t\taction: 'g_map_options',\r\n\t\t\t\t\t\tmap_id:2,\r\n\t\t\t\t\t\ttask: 'ajax'\r\n\t\t\t\t\t}\r\n\t\t\t\t\tjQuery.ajax({\r\n\t\t\t\t\t\turl: 'https:\/\/www.mcs.od.ua\/wp-admin\/admin-ajax.php',\r\n\t\t\t\t\t\tdataType: 'json',\r\n\t\t\t\t\t\tmethod: 'post',\r\n\t\t\t\t\t\tdata: front_end_data,\r\n\t\t\t\t\t\tbeforeSend: function () {\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).done(function (response) {\r\n\t\t\t\t\t\tHGinitializeMap(response);\r\n\t\t\t\t\t}).fail(function () {\r\n\t\t\t\t\t\tconsole.log('Failed to load response from database');\r\n\t\t\t\t\t});\r\n\t\t\t\t\tfunction HGinitializeMap(response) {\r\n\t\t\t\t\t\tif (response.success) {\r\n\t\t\t\t\t\t\tvar mapInfo = response.success;\r\n\t\t\t\t\t\t\tvar markers = mapInfo.markers;\r\n\t\t\t\t\t\t\tfor (var i = 0; i < markers.length; i++) {\r\n\t\t\t\t\t\t\t\tvar name = markers[i].name;\r\n\t\t\t\t\t\t\t\tvar address = markers[i].address;\r\n\t\t\t\t\t\t\t\tvar anim = markers[i].animation;\r\n\t\t\t\t\t\t\t\tvar description = markers[i].description;\r\n\t\t\t\t\t\t\t\tvar point = new google.maps.LatLng(\r\n\t\t\t\t\t\t\t\t\tparseFloat(markers[i].lat),\r\n\t\t\t\t\t\t\t\t\tparseFloat(markers[i].lng));\r\n\t\t\t\t\t\t\t\tvar html = \"<b>\" + name + \"<\/b> <br\/>\" + address;\r\n\t\t\t\t\t\t\t\tif (anim == 'DROP') {\r\n\t\t\t\t\t\t\t\t\tmarker[i] = new google.maps.Marker({\r\n\t\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\t\tposition: point,\r\n\t\t\t\t\t\t\t\t\t\ttitle: name,\r\n\t\t\t\t\t\t\t\t\t\tcontent: description,\r\n\t\t\t\t\t\t\t\t\t\tanimation: google.maps.Animation.DROP,\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (anim == 'BOUNCE') {\r\n\t\t\t\t\t\t\t\t\tmarker[i] = new google.maps.Marker({\r\n\t\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\t\tposition: point,\r\n\t\t\t\t\t\t\t\t\t\ttitle: name,\r\n\t\t\t\t\t\t\t\t\t\tcontent: description,\r\n\t\t\t\t\t\t\t\t\t\tanimation: google.maps.Animation.BOUNCE\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (anim == 'NONE') {\r\n\t\t\t\t\t\t\t\t\tmarker[i] = new google.maps.Marker({\r\n\t\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\t\tposition: point,\r\n\t\t\t\t\t\t\t\t\t\tcontent: description,\r\n\t\t\t\t\t\t\t\t\t\ttitle: name,\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tinfowindow[i] = new google.maps.InfoWindow;\r\n\t\t\t\t\t\t\t\tbindInfoWindow(marker[i], front_end_map, infowindow[i], description, \"click\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tvar polygones = mapInfo.polygons;\r\n\t\t\t\t\t\t\tfor (var i = 0; i < polygones.length; i++) {\r\n\t\t\t\t\t\t\t\tvar name = polygones[i].name;\r\n\t\t\t\t\t\t\t\tvar line_opacity = polygones[i].line_opacity;\r\n\t\t\t\t\t\t\t\tvar line_color = \"#\" + polygones[i].line_color;\r\n\t\t\t\t\t\t\t\tvar fill_opacity = polygones[i].fill_opacity;\r\n\t\t\t\t\t\t\t\tvar line_width = polygones[i].line_width;\r\n\t\t\t\t\t\t\t\tvar fill_color = \"#\" + polygones[i].fill_color;\r\n\t\t\t\t\t\t\t\tvar latlngs = polygones[i].latlng;\r\n\t\t\t\t\t\t\t\tpolygoncoords = [];\r\n\t\t\t\t\t\t\t\tfor (var j = 0; j < latlngs.length; j++) {\r\n\t\t\t\t\t\t\t\t\tpolygonpoints = new google.maps.LatLng(parseFloat(latlngs[j].lat),\r\n\t\t\t\t\t\t\t\t\t\tparseFloat(latlngs[j].lng))\r\n\t\t\t\t\t\t\t\t\tpolygoncoords.push(polygonpoints)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\/\/alert(polygoncoords);\r\n\t\t\t\t\t\t\t\tpolygone[i] = new google.maps.Polygon({\r\n\t\t\t\t\t\t\t\t\tpaths: polygoncoords,\r\n\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\tstrokeOpacity: line_opacity,\r\n\t\t\t\t\t\t\t\t\tstrokeColor: line_color,\r\n\t\t\t\t\t\t\t\t\tstrokeWeight: line_width,\r\n\t\t\t\t\t\t\t\t\tfillOpacity: fill_opacity,\r\n\t\t\t\t\t\t\t\t\tfillColor: fill_color,\r\n\t\t\t\t\t\t\t\t\tdraggable: false,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tvar polylines = mapInfo.polylines;\r\n\t\t\t\t\t\t\tfor (var i = 0; i < polylines.length; i++) {\r\n\t\t\t\t\t\t\t\tvar name = polylines[i].name;\r\n\t\t\t\t\t\t\t\tvar line_opacity = polylines[i].line_opacity;\r\n\t\t\t\t\t\t\t\tvar line_color = polylines[i].line_color;\r\n\t\t\t\t\t\t\t\tvar line_width = polylines[i].line_width;\r\n\t\t\t\t\t\t\t\tvar latlngs = polylines[i].latlng;\r\n\t\t\t\t\t\t\t\tnewpolylinecoords = [];\r\n\t\t\t\t\t\t\t\tfor (var j = 0; j < latlngs.length; j++) {\r\n\t\t\t\t\t\t\t\t\tpolylinepoints = new google.maps.LatLng(parseFloat(latlngs[j].lat),\r\n\t\t\t\t\t\t\t\t\t\tparseFloat(latlngs[j].lng))\r\n\t\t\t\t\t\t\t\t\tnewpolylinecoords.push(polylinepoints)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tpolyline[i] = new google.maps.Polyline({\r\n\t\t\t\t\t\t\t\t\tpath: newpolylinecoords,\r\n\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\tstrokeColor: \"#\" + line_color,\r\n\t\t\t\t\t\t\t\t\tstrokeOpacity: line_opacity,\r\n\t\t\t\t\t\t\t\t\tstrokeWeight: line_width,\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tvar circles = mapInfo.circles;\r\n\t\t\t\t\t\t\tfor (var i = 0; i < circles.length; i++) {\r\n\t\t\t\t\t\t\t\tvar circle_name = circles[i].name;\r\n\t\t\t\t\t\t\t\tvar circle_center_lat = circles[i].center_lat;\r\n\t\t\t\t\t\t\t\tvar circle_center_lng = circles[i].center_lng;\r\n\t\t\t\t\t\t\t\tvar circle_radius = circles[i].radius;\r\n\t\t\t\t\t\t\t\tvar circle_line_width = circles[i].line_width;\r\n\t\t\t\t\t\t\t\tvar circle_line_color = circles[i].line_color;\r\n\t\t\t\t\t\t\t\tvar circle_line_opacity = circles[i].line_opacity;\r\n\t\t\t\t\t\t\t\tvar circle_fill_color = circles[i].fill_color;\r\n\t\t\t\t\t\t\t\tvar circle_fill_opacity = circles[i].fill_opacity;\r\n\t\t\t\t\t\t\t\tvar circle_show_marker = parseInt(circles[i].show_marker);\r\n\t\t\t\t\t\t\t\tcirclepoint = new google.maps.LatLng(parseFloat(circles[i].center_lat),\r\n\t\t\t\t\t\t\t\t\tparseFloat(circles[i].center_lng));\r\n\t\t\t\t\t\t\t\tnewcircle[i] = new google.maps.Circle({\r\n\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\tcenter: circlepoint,\r\n\t\t\t\t\t\t\t\t\ttitle: name,\r\n\t\t\t\t\t\t\t\t\tradius: parseInt(circle_radius),\r\n\t\t\t\t\t\t\t\t\tstrokeColor: \"#\" + circle_line_color,\r\n\t\t\t\t\t\t\t\t\tstrokeOpacity: circle_line_opacity,\r\n\t\t\t\t\t\t\t\t\tstrokeWeight: circle_line_width,\r\n\t\t\t\t\t\t\t\t\tfillColor: \"#\" + circle_fill_color,\r\n\t\t\t\t\t\t\t\t\tfillOpacity: circle_fill_opacity\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tif (circle_show_marker == '1') {\r\n\t\t\t\t\t\t\t\t\tnewcirclemarker[i] = new google.maps.Marker({\r\n\t\t\t\t\t\t\t\t\t\tposition: circlepoint,\r\n\t\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\t\ttitle: circle_name,\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t<\/script>\r\n\t\t\t<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"vce-row-container\" data-vce-boxed-width=\"true\">\n<div id=\"el-3c777bfb\" class=\"vce-row vce-row--col-gap-30 vce-row-equal-height vce-row-content--top\" data-vce-do-apply=\"all el-3c777bfb\">\n<div class=\"vce-content-background-container\"><\/div>\n<div class=\"vce-row-content\" data-vce-element-content=\"true\">\n<div id=\"el-b876f267\" class=\"vce-col vce-col--md-30p vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-first vce-col--lg-first vce-col--xl-first\">\n<div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background el-b876f267\">\n<div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-b876f267\">\n<div class=\"vce-text-block\">\n<div id=\"el-d3428a61\" class=\"vce-text-block-wrapper vce\" data-vce-do-apply=\"all el-d3428a61\">\n<div>\n<p><noscript><\/p>\n<style>.vce-row-container .vcv-lozad {display: none}<\/style>\n<p><\/noscript><\/p>\n<\/div>\n<div>\n<h3>\u041a\u0438\u0435\u0432<\/h3>\n<p style=\"font-size: 16px;\"><a href=\"tel:+380938282160\">+38 (093) 828 21 60<\/a><\/p>\n<p style=\"font-size: 16px;\"><a href=\"mailto:ds@mcs.od.ua\">ds@mcs.od.ua<\/a><\/p>\n<p style=\"font-size: 16px;\">\u043f\u0440. \u0413\u043e\u043b\u043e\u0441\u0435\u0435\u0432\u0441\u043a\u0438\u0439, 130\/57, \u043e\u0444\u0438\u0441 92, 02000<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"vce-raw-html\">\n<div id=\"el-863542f2\" class=\"vce-raw-html-wrapper\" data-vce-do-apply=\"all el-863542f2\">\n<h5>\u041c\u044b \u0432 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445:<\/h5>\n<div style=\"display: flex; margin-bottom: 15px;\"><i class=\"fa fa-linkedin\"><\/i><br \/>\n<i class=\"fa fa-facebook\" aria-hidden=\"true\"><\/i><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"el-4482e164\" class=\"vce-col vce-col--md-70p vce-col--xs-1 vce-col--xs-last vce-col--xs-first vce-col--sm-last vce-col--sm-first vce-col--md-last vce-col--lg-last vce-col--xl-last\">\n<div class=\"vce-col-inner\" data-vce-do-apply=\"border margin background el-4482e164\">\n<div class=\"vce-col-content\" data-vce-element-content=\"true\" data-vce-do-apply=\"padding el-4482e164\">\n<div class=\"vce-raw-html\">\n<div id=\"el-1df0aa4b\" class=\"vce-raw-html-wrapper\" data-vce-do-apply=\"all el-1df0aa4b\">\t\t\t<div id=\"huge_it_google_map71537_container\">\r\n\t\t\t\t<div id=\"huge_it_google_map71537\"\r\n\t\t\t\t     style=\"position:relative !important;height:300px; width:100%;\r\n\t\t\t\t\t     border-radius:0px !important;\r\n\t\t\t\t     \t\t\t\t\t     float:left !important;\r\n\t\t\t\t\t     margin:0px 0px 0px 0px !important;\r\n\t\t\t\t\t     \">\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t<style>\r\n\t\t\t\t#huge_it_google_map71537 img {\r\n\t\t\t\t\tmax-width: none;\r\n\t\t\t\t\tvisibility: visible !important;\r\n\t\t\t\t}\r\n\t\t\t<\/style>\r\n\t\t\t<script>\r\n\t\t\t\tjQuery(document).ready(function () {\r\n\t\t\t\t\tvar marker = [];\r\n\t\t\t\t\tvar polygone = [];\r\n\t\t\t\t\tvar polyline = [];\r\n\t\t\t\t\tvar polylinepoints;\r\n\t\t\t\t\tvar newpolylinecoords = [];\r\n\t\t\t\t\tvar polygonpoints;\r\n\t\t\t\t\tvar polygoncoords = [];\r\n\t\t\t\t\tvar newcircle = [];\r\n\t\t\t\t\tvar infowindow = [];\r\n\t\t\t\t\tvar newcirclemarker = [];\r\n\t\t\t\t\tvar circlepoint;\r\n\t\t\t\t\tvar width = jQuery(\"#huge_it_google_map71537\").width();\r\n\t\t\t\t\tvar height = jQuery(\"#huge_it_google_map71537\").height();\r\n\r\n\t\t\t\t\tfunction bindInfoWindow(marker, map, infowindow, description, info_type) {\r\n\t\t\t\t\t\tgoogle.maps.event.addListener(marker, 'click', function () {\r\n\t\t\t\t\t\t\tinfowindow.setContent(description);\r\n\t\t\t\t\t\t\tinfowindow.open(map, marker);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tjQuery(document).on(\"click tap drag scroll\", function (e) {\r\n\t\t\t\t\t\tif (window.matchMedia('(max-width:768px)').matches) {\r\n\t\t\t\t\t\t\tvar container = jQuery(\"#huge_it_google_map71537\");\r\n\t\t\t\t\t\t\tif (!container.is(e.target) && container.has(e.target).length === 0) {\r\n\t\t\t\t\t\t\t\tfront_end_map.setOptions({\r\n\t\t\t\t\t\t\t\t\tdraggable: false,\r\n\t\t\t\t\t\t\t\t\tscrollwheel: false,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfront_end_map.setOptions({\r\n\t\t\t\t\t\t\t\t\tdraggable: true,\r\n\t\t\t\t\t\t\t\t\tscrollwheel: true,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t})\r\n\t\t\t\t\tvar div = parseInt(width) \/ parseInt(height);\r\n\t\t\t\t\tjQuery(window).on(\"resize\", function () {\r\n\t\t\t\t\t\tvar newwidth = jQuery(\"#huge_it_google_map71537\").width();\r\n\t\t\t\t\t\tvar newheight = parseInt(newwidth) \/ parseInt(div) + \"px\";\r\n\t\t\t\t\t\tjQuery(\"#huge_it_google_map71537\").height(newheight);\r\n\t\t\t\t\t})\r\n\r\n\t\t\t\t\tvar center_lat = 50.3827928;\r\n\t\t\t\t\tvar center_lng = 30.4790107;\r\n\t\t\t\t\tvar center_coords = new google.maps.LatLng(center_lat, center_lng);\r\n\t\t\t\t\tvar frontEndMapOptions = {\r\n\t\t\t\t\t\tzoom: parseInt(17),\r\n\t\t\t\t\t\tcenter: center_coords,\r\n\t\t\t\t\t\tdisableDefaultUI: true,\r\n\t\t\t\t\t\tpanControl: true,\r\n\t\t\t\t\t\tzoomControl: true,\r\n\t\t\t\t\t\tmapTypeControl: true,\r\n\t\t\t\t\t\tscaleControl: false,\r\n\t\t\t\t\t\tstreetViewControl: false,\r\n\t\t\t\t\t\toverviewMapControl: true,\r\n\t\t\t\t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP,\r\n\t\t\t\t\t\tminZoom:0,\r\n\t\t\t\t\t\tmaxZoom:22\t\t\t\t\t}\r\n\t\t\t\t\tvar front_end_map = new google.maps.Map(document.getElementById('huge_it_google_map71537'), frontEndMapOptions)\r\n\r\n\t\t\t\t\tif (window.matchMedia('(max-width:768px)').matches) {\r\n\t\t\t\t\t\tfront_end_map.setOptions({\r\n\t\t\t\t\t\t\tdraggable: false,\r\n\t\t\t\t\t\t\tscrollwheel: false,\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfront_end_map.setOptions({\r\n\t\t\t\t\t\t\tdraggable: true,\r\n\t\t\t\t\t\t\tscrollwheel: true,\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\tvar front_end_data = {\r\n\t\t\t\t\t\taction: 'g_map_options',\r\n\t\t\t\t\t\tmap_id:3,\r\n\t\t\t\t\t\ttask: 'ajax'\r\n\t\t\t\t\t}\r\n\t\t\t\t\tjQuery.ajax({\r\n\t\t\t\t\t\turl: 'https:\/\/www.mcs.od.ua\/wp-admin\/admin-ajax.php',\r\n\t\t\t\t\t\tdataType: 'json',\r\n\t\t\t\t\t\tmethod: 'post',\r\n\t\t\t\t\t\tdata: front_end_data,\r\n\t\t\t\t\t\tbeforeSend: function () {\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).done(function (response) {\r\n\t\t\t\t\t\tHGinitializeMap(response);\r\n\t\t\t\t\t}).fail(function () {\r\n\t\t\t\t\t\tconsole.log('Failed to load response from database');\r\n\t\t\t\t\t});\r\n\t\t\t\t\tfunction HGinitializeMap(response) {\r\n\t\t\t\t\t\tif (response.success) {\r\n\t\t\t\t\t\t\tvar mapInfo = response.success;\r\n\t\t\t\t\t\t\tvar markers = mapInfo.markers;\r\n\t\t\t\t\t\t\tfor (var i = 0; i < markers.length; i++) {\r\n\t\t\t\t\t\t\t\tvar name = markers[i].name;\r\n\t\t\t\t\t\t\t\tvar address = markers[i].address;\r\n\t\t\t\t\t\t\t\tvar anim = markers[i].animation;\r\n\t\t\t\t\t\t\t\tvar description = markers[i].description;\r\n\t\t\t\t\t\t\t\tvar point = new google.maps.LatLng(\r\n\t\t\t\t\t\t\t\t\tparseFloat(markers[i].lat),\r\n\t\t\t\t\t\t\t\t\tparseFloat(markers[i].lng));\r\n\t\t\t\t\t\t\t\tvar html = \"<b>\" + name + \"<\/b> <br\/>\" + address;\r\n\t\t\t\t\t\t\t\tif (anim == 'DROP') {\r\n\t\t\t\t\t\t\t\t\tmarker[i] = new google.maps.Marker({\r\n\t\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\t\tposition: point,\r\n\t\t\t\t\t\t\t\t\t\ttitle: name,\r\n\t\t\t\t\t\t\t\t\t\tcontent: description,\r\n\t\t\t\t\t\t\t\t\t\tanimation: google.maps.Animation.DROP,\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (anim == 'BOUNCE') {\r\n\t\t\t\t\t\t\t\t\tmarker[i] = new google.maps.Marker({\r\n\t\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\t\tposition: point,\r\n\t\t\t\t\t\t\t\t\t\ttitle: name,\r\n\t\t\t\t\t\t\t\t\t\tcontent: description,\r\n\t\t\t\t\t\t\t\t\t\tanimation: google.maps.Animation.BOUNCE\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (anim == 'NONE') {\r\n\t\t\t\t\t\t\t\t\tmarker[i] = new google.maps.Marker({\r\n\t\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\t\tposition: point,\r\n\t\t\t\t\t\t\t\t\t\tcontent: description,\r\n\t\t\t\t\t\t\t\t\t\ttitle: name,\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tinfowindow[i] = new google.maps.InfoWindow;\r\n\t\t\t\t\t\t\t\tbindInfoWindow(marker[i], front_end_map, infowindow[i], description, \"click\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tvar polygones = mapInfo.polygons;\r\n\t\t\t\t\t\t\tfor (var i = 0; i < polygones.length; i++) {\r\n\t\t\t\t\t\t\t\tvar name = polygones[i].name;\r\n\t\t\t\t\t\t\t\tvar line_opacity = polygones[i].line_opacity;\r\n\t\t\t\t\t\t\t\tvar line_color = \"#\" + polygones[i].line_color;\r\n\t\t\t\t\t\t\t\tvar fill_opacity = polygones[i].fill_opacity;\r\n\t\t\t\t\t\t\t\tvar line_width = polygones[i].line_width;\r\n\t\t\t\t\t\t\t\tvar fill_color = \"#\" + polygones[i].fill_color;\r\n\t\t\t\t\t\t\t\tvar latlngs = polygones[i].latlng;\r\n\t\t\t\t\t\t\t\tpolygoncoords = [];\r\n\t\t\t\t\t\t\t\tfor (var j = 0; j < latlngs.length; j++) {\r\n\t\t\t\t\t\t\t\t\tpolygonpoints = new google.maps.LatLng(parseFloat(latlngs[j].lat),\r\n\t\t\t\t\t\t\t\t\t\tparseFloat(latlngs[j].lng))\r\n\t\t\t\t\t\t\t\t\tpolygoncoords.push(polygonpoints)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\/\/alert(polygoncoords);\r\n\t\t\t\t\t\t\t\tpolygone[i] = new google.maps.Polygon({\r\n\t\t\t\t\t\t\t\t\tpaths: polygoncoords,\r\n\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\tstrokeOpacity: line_opacity,\r\n\t\t\t\t\t\t\t\t\tstrokeColor: line_color,\r\n\t\t\t\t\t\t\t\t\tstrokeWeight: line_width,\r\n\t\t\t\t\t\t\t\t\tfillOpacity: fill_opacity,\r\n\t\t\t\t\t\t\t\t\tfillColor: fill_color,\r\n\t\t\t\t\t\t\t\t\tdraggable: false,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tvar polylines = mapInfo.polylines;\r\n\t\t\t\t\t\t\tfor (var i = 0; i < polylines.length; i++) {\r\n\t\t\t\t\t\t\t\tvar name = polylines[i].name;\r\n\t\t\t\t\t\t\t\tvar line_opacity = polylines[i].line_opacity;\r\n\t\t\t\t\t\t\t\tvar line_color = polylines[i].line_color;\r\n\t\t\t\t\t\t\t\tvar line_width = polylines[i].line_width;\r\n\t\t\t\t\t\t\t\tvar latlngs = polylines[i].latlng;\r\n\t\t\t\t\t\t\t\tnewpolylinecoords = [];\r\n\t\t\t\t\t\t\t\tfor (var j = 0; j < latlngs.length; j++) {\r\n\t\t\t\t\t\t\t\t\tpolylinepoints = new google.maps.LatLng(parseFloat(latlngs[j].lat),\r\n\t\t\t\t\t\t\t\t\t\tparseFloat(latlngs[j].lng))\r\n\t\t\t\t\t\t\t\t\tnewpolylinecoords.push(polylinepoints)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tpolyline[i] = new google.maps.Polyline({\r\n\t\t\t\t\t\t\t\t\tpath: newpolylinecoords,\r\n\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\tstrokeColor: \"#\" + line_color,\r\n\t\t\t\t\t\t\t\t\tstrokeOpacity: line_opacity,\r\n\t\t\t\t\t\t\t\t\tstrokeWeight: line_width,\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tvar circles = mapInfo.circles;\r\n\t\t\t\t\t\t\tfor (var i = 0; i < circles.length; i++) {\r\n\t\t\t\t\t\t\t\tvar circle_name = circles[i].name;\r\n\t\t\t\t\t\t\t\tvar circle_center_lat = circles[i].center_lat;\r\n\t\t\t\t\t\t\t\tvar circle_center_lng = circles[i].center_lng;\r\n\t\t\t\t\t\t\t\tvar circle_radius = circles[i].radius;\r\n\t\t\t\t\t\t\t\tvar circle_line_width = circles[i].line_width;\r\n\t\t\t\t\t\t\t\tvar circle_line_color = circles[i].line_color;\r\n\t\t\t\t\t\t\t\tvar circle_line_opacity = circles[i].line_opacity;\r\n\t\t\t\t\t\t\t\tvar circle_fill_color = circles[i].fill_color;\r\n\t\t\t\t\t\t\t\tvar circle_fill_opacity = circles[i].fill_opacity;\r\n\t\t\t\t\t\t\t\tvar circle_show_marker = parseInt(circles[i].show_marker);\r\n\t\t\t\t\t\t\t\tcirclepoint = new google.maps.LatLng(parseFloat(circles[i].center_lat),\r\n\t\t\t\t\t\t\t\t\tparseFloat(circles[i].center_lng));\r\n\t\t\t\t\t\t\t\tnewcircle[i] = new google.maps.Circle({\r\n\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\tcenter: circlepoint,\r\n\t\t\t\t\t\t\t\t\ttitle: name,\r\n\t\t\t\t\t\t\t\t\tradius: parseInt(circle_radius),\r\n\t\t\t\t\t\t\t\t\tstrokeColor: \"#\" + circle_line_color,\r\n\t\t\t\t\t\t\t\t\tstrokeOpacity: circle_line_opacity,\r\n\t\t\t\t\t\t\t\t\tstrokeWeight: circle_line_width,\r\n\t\t\t\t\t\t\t\t\tfillColor: \"#\" + circle_fill_color,\r\n\t\t\t\t\t\t\t\t\tfillOpacity: circle_fill_opacity\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tif (circle_show_marker == '1') {\r\n\t\t\t\t\t\t\t\t\tnewcirclemarker[i] = new google.maps.Marker({\r\n\t\t\t\t\t\t\t\t\t\tposition: circlepoint,\r\n\t\t\t\t\t\t\t\t\t\tmap: front_end_map,\r\n\t\t\t\t\t\t\t\t\t\ttitle: circle_name,\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t<\/script>\r\n\t\t\t<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><!--vcv no format--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0434\u0435\u0441\u0441\u0430 +38 (067) 480 30 13 lkw@mcs.od.ua \u0443\u043b. \u0426\u0435\u0440\u043a\u043e\u0432\u043d\u0430\u044f, 19,\u2026<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"no-sidebar-page.php","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.mcs.od.ua\/ru\/wp-json\/wp\/v2\/pages\/347936"}],"collection":[{"href":"https:\/\/www.mcs.od.ua\/ru\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mcs.od.ua\/ru\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mcs.od.ua\/ru\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mcs.od.ua\/ru\/wp-json\/wp\/v2\/comments?post=347936"}],"version-history":[{"count":52,"href":"https:\/\/www.mcs.od.ua\/ru\/wp-json\/wp\/v2\/pages\/347936\/revisions"}],"predecessor-version":[{"id":349281,"href":"https:\/\/www.mcs.od.ua\/ru\/wp-json\/wp\/v2\/pages\/347936\/revisions\/349281"}],"wp:attachment":[{"href":"https:\/\/www.mcs.od.ua\/ru\/wp-json\/wp\/v2\/media?parent=347936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}