Подскажите в чём может быть дело - в Firefox все три многоугольника
отображаются, а в Opere и Internet
Explorer - нет, только карта, код
следующий (ССЫЛКА НА СТРАНИЦУ с картой - http://dostavkaspb.sc14.co.uk/map.html). Вот ведь как-то можно это сделать - http://api.yandex.ru/maps
<meta
http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://api-maps.yandex.ru/1.1/index.xml?key=мой
ключ"
type="text/javascript"></script>
<script
type="text/javascript">
YMaps.jQuery(function () {
var map = new YMaps.Map(YMaps.jQuery("#YMapsID")[0]);
map.setCenter(new
YMaps.GeoPoint(30.33255,60.05141), 8);
//
map.setType(YMaps.MapType.HYBRID);
map.addControl(new
YMaps.TypeControl());
map.addControl(new YMaps.ToolBar());
map.addControl(new YMaps.Zoom());
//map.enableScrollZoom();
map.addControl(new
YMaps.ScaleLine());
var searchConrol = new
YMaps.SearchControl({ resultsPerPage : 5, useMapBounds : true });
map.addControl(new
YMaps.SearchControl);
// Зона 1
var polygon = new
YMaps.Polygon([ new YMaps.GeoPoint(30.336864,60.2408),
new YMaps.GeoPoint(30.636241,60.143702),
new YMaps.GeoPoint(30.726878,60.025704),
new YMaps.GeoPoint(30.614246,59.944966),
new
YMaps.GeoPoint(30.527728,59.892565),
new YMaps.GeoPoint(30.417865,59.867023),
new YMaps.GeoPoint(30.26543,59.879451),
new YMaps.GeoPoint(30.203632,59.947722),
new YMaps.GeoPoint(29.971546,60.035783),
new
YMaps.GeoPoint(30.001758,60.147583),
new YMaps.GeoPoint(30.26131,60.231695)
]);
map.addOverlay(polygon);
var
style = new YMaps.Style();
style.polygonStyle = new
YMaps.PolygonStyle();
style.polygonStyle.fill = true;
style.polygonStyle.outline
= false;
style.polygonStyle.strokeWidth = 2;
style.polygonStyle.strokeColor
= "ffff0088";
style.polygonStyle.fillColor = "CC000050";
polygon.setStyle(style);
//
Зона 2
var polygon = new YMaps.Polygon([ new
YMaps.GeoPoint(30.26131,60.412859),//2(1)
new YMaps.GeoPoint(30.568995,60.394516),
new YMaps.GeoPoint(30.828395,60.31193),
new YMaps.GeoPoint(31.045459,60.168118),
new YMaps.GeoPoint(31.038592,59.946345),
new
YMaps.GeoPoint(30.858691,59.813115),
new YMaps.GeoPoint(30.455619,59.674371),
new YMaps.GeoPoint(30.026465,59.727811),
new YMaps.GeoPoint(29.661204,59.923487),
new YMaps.GeoPoint(29.647471,60.025361),
new
YMaps.GeoPoint(29.664934,60.194566),
new YMaps.GeoPoint(29.905544,60.340531),
new YMaps.GeoPoint(30.196681,60.403094),
new YMaps.GeoPoint(30.26131,60.412859),//2(1)
new
YMaps.GeoPoint(30.336864,60.2408),//1(1)
new YMaps.GeoPoint(30.26131,60.231695),
new YMaps.GeoPoint(30.001758,60.147583),
new YMaps.GeoPoint(29.971546,60.035783),
new YMaps.GeoPoint(30.203632,59.947722),
new YMaps.GeoPoint(30.26543,59.879451),
new YMaps.GeoPoint(30.417865,59.867023),
new YMaps.GeoPoint(30.527728,59.892565),
new YMaps.GeoPoint(30.614246,59.944966),
new YMaps.GeoPoint(30.726878,60.025704),
new
YMaps.GeoPoint(30.636241,60.143702),
new
YMaps.GeoPoint(30.336864,60.2408)//1(1)
]);
map.addOverlay(polygon);
var
style = new YMaps.Style();
style.polygonStyle = new
YMaps.PolygonStyle();
style.polygonStyle.fill = true;
style.polygonStyle.outline
= false;
style.polygonStyle.strokeWidth = 2;
style.polygonStyle.strokeColor
= "ffff0088";
style.polygonStyle.fillColor = "0000FF50";
polygon.setStyle(style);
//
Зона 3
var polygon = new YMaps.Polygon([ new
YMaps.GeoPoint(30.184299,60.58308),//3(1)
new YMaps.GeoPoint(30.677379,60.552664),
new YMaps.GeoPoint(31.050914,60.174475),
new YMaps.GeoPoint(31.375011,59.891386),
new YMaps.GeoPoint(31.089366,59.675384),
new YMaps.GeoPoint(30.622447,59.52223),
new
YMaps.GeoPoint(30.117076,59.516648),
new YMaps.GeoPoint(29.56776,59.678162),
new YMaps.GeoPoint(29.276622,59.960321),
new YMaps.GeoPoint(29.271129,60.166264),
new YMaps.GeoPoint(29.611705,60.455138),
new YMaps.GeoPoint(30.184299,60.58308),
new
YMaps.GeoPoint(30.184299,60.58308),//3(1)
new YMaps.GeoPoint(30.26131,60.412859),//2(1)
new YMaps.GeoPoint(30.196681,60.403094),
new YMaps.GeoPoint(29.905544,60.340531),
new
YMaps.GeoPoint(29.664934,60.194566),
new YMaps.GeoPoint(29.647471,60.025361),
new YMaps.GeoPoint(29.661204,59.923487),
new YMaps.GeoPoint(30.026465,59.727811),
new YMaps.GeoPoint(30.455619,59.674371),
new
YMaps.GeoPoint(30.858691,59.813115),
new YMaps.GeoPoint(31.038592,59.946345),
new YMaps.GeoPoint(31.045459,60.168118),
new YMaps.GeoPoint(30.828395,60.31193),
new YMaps.GeoPoint(30.568995,60.394516),
new
YMaps.GeoPoint(30.26131,60.412859)//2(1)
]);
map.addOverlay(polygon);
var
style = new YMaps.Style();
style.polygonStyle = new
YMaps.PolygonStyle();
style.polygonStyle.fill = true;
style.polygonStyle.outline
= false;
style.polygonStyle.strokeWidth = 2;
style.polygonStyle.strokeColor
= "ffff0088";
style.polygonStyle.fillColor = "00000050";
polygon.setStyle(style);
//
Последние скобки
})
</script>
Заранее
благодарен всем )
С Уважением