- Posts: 16
- Thank you received: 0
'+ '
'; marker1.properties.set("clusterCaption", contentStringHeadCluster1); marker1.properties.set("balloonContentHeader", contentStringHead1); marker1.properties.set("balloonContentBody", contentStringBody1); marker1.events.add("click", function (e) { }); zhymObjMgr.PlacemarkAdd(0, 1, marker1, null); zhymObjMgr.enablePlacemarkClusterization(); zhymObjMgr.InitializeByGroupState(); var toShowLoading = document.getElementById("YMapsLoading"); toShowLoading.style.display = 'none'; } 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") { allPlacemarkArray[p_id].markerobject.events.fire("click", new ymaps.Event({ target: allPlacemarkArray[p_id].markerobject })); } else if (cur_action[i] == "center") { map.setCenter(allPlacemarkArray[p_id].latlngobject); } } } } function PlacemarkByID(p_id, p_lat, p_lng, p_obj, p_ll) { this.id = p_id; this.lat = p_lat; this.lng = p_lng; this.markerobject = p_obj; this.latlngobject = p_ll; } function PlacemarkByIDAdd(p_id, p_lat, p_lng, p_obj, p_ll) { allPlacemarkArray[p_id] = new PlacemarkByID(p_id, p_lat, p_lng, p_obj, p_ll); } /*]]>*/
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
© 2011- Жук Це-Це. Design by Dmitry Zhuk