if (!window.BX_YMapAddPlacemark)
{
window.BX_YMapAddPlacemark = function(map, arPlacemark)
{
if (null == map)
return false;
if(!arPlacemark.LAT || !arPlacemark.LON)
return false;
var obPlacemark = new map.bx_context.YMaps.Placemark(new map.bx_context.YMaps.GeoPoint(arPlacemark.LON, arPlacemark.LAT), {style: "default#airplaneIcon"});
obPlacemark.description=arPlacemark.TEXT;
map.addOverlay(obPlacemark);
return obPlacemark;
}
} |