';
var titlePlacemark2 = "ДУОиО 'Мармелад'";
var latlng2 = new google.maps.LatLng(49.048109406066345, 37.55457401275583);
var contentString2 = "";
contentString2 = '
' +
'
'+
'ДУОиО 'Мармелад''+
'
'+
'
'+
'
'+Convert_Latitude_Decimal2DMS(49.048109406066345)+'
'+
'
'+Convert_Longitude_Decimal2DMS(37.55457401275583)+'
'+
'
'+
'
'+
'
'+
'
';
var marker2 = new MarkerWithLabel({
position: latlng2,
map: map,
icon: icoIcon + "mapiconscollection-friends-family-daycare.png",
draggable: false,
title:"ДУОиО 'Мармелад'"
});
PlacemarkByIDAdd(2, 49.048109406066345, 37.55457401275583, marker2, latlng2, 0);
marker2.set("zhgmRating", 0);
marker2.set("zhgmPlacemarkID", 2);
marker2.set("zhgmContactAttrs", userContactAttrs);
marker2.set("zhgmUserContact", "1");
marker2.set("zhgmUserUser", "0");
marker2.set("zhgmOriginalPosition", latlng2);
marker2.set("zhgmInfowinContent", contentString2);
marker2.set("zhgmTitle", "ДУОиО 'Мармелад'");
marker2.set("zhgmIncludeInList", 1);
google.maps.event.addListener(marker2, 'click', function(event) {
infowindow.close();
for (i = 0; i < infobubblemarkers.length; i++) {
infobubblemarkers[i].close();
}
hoverinfowindow.close();
infowindow.set("zhgmPlacemarkTitle", titlePlacemark2);
infowindow.set("zhgmPlacemarkOriginalPosition", this.get("zhgmOriginalPosition"));
infowindow.setContent(this.get("zhgmInfowinContent"));
infowindow.setPosition(this.getPosition());
infowindow.open(map);
});
zhgmObjMgr.PlacemarkAdd(1, 2, marker2, null);
infowindow.close();
infowindow.setPosition(latlng2);
google.maps.event.trigger(marker2, "click");
var mapcenterControl = new zhgmMapCenterButtonControl(latlng,"13",map,2,2,2,"mapcenter","Начальная позиция",19,16,"http://gallaor.com.ua/administrator/components/com_zhgooglemap/assets/utils/home.png");
google.maps.event.addListenerOnce(map, 'idle', function(event) {
});
var toShowLoading = document.getElementById("GMapsLoading");
toShowLoading.style.display = 'none';
zhgmObjMgr.InitializeByGroupState();
};
function PlacemarkByIDShow(p_id, p_action, p_zoom) {
if (p_zoom != undefined && p_zoom != "")
{
map.setZoom(p_zoom);
}
if( allPlacemarkArray[p_id] === undefined )
{
alert("Unable to find placemark with ID = " + p_id);
}
else
{
cur_action = p_action.toLowerCase().split(",");
for (i = 0; i < cur_action.length; i++) {
if (cur_action[i] == "click")
{
google.maps.event.trigger(allPlacemarkArray[p_id].markerobject, "click");
}
else if (cur_action[i] == "center")
{
map.setCenter(allPlacemarkArray[p_id].latlngobject);
}
}
}
}
function PlacemarkByID(p_id, p_lat, p_lng, p_obj, p_ll, p_rate) {
this.id = p_id;
this.lat = p_lat;
this.lng = p_lng;
this.markerobject = p_obj;
this.latlngobject = p_ll;
this.rate = p_rate;
}
function PlacemarkByIDAdd(p_id, p_lat, p_lng, p_obj, p_ll, p_rate) {
allPlacemarkArray[p_id] = new PlacemarkByID(p_id, p_lat, p_lng, p_obj, p_ll, p_rate);
}
function showPlacemarkPanorama(p_width, p_height, p_pov) {
PlacemarkShowPanorama(map, infowindow, p_width, p_height, p_pov, "");
};
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(initialize);
/*]]>*/