
то есть
Код: Выделить всё
<Style id="sloy14">
<IconStyle>
<scale>1.2</scale>
<Icon>
<href>http://localhost/14.jpg</href>
</Icon>
<hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
</IconStyle>
<LabelStyle>
<color>ff00aaff</color>
</LabelStyle>
</Style><Style id="sloy15">
<IconStyle>
<scale>1.2</scale>
<Icon>
<href>http://localhost/15.jpg</href>
</Icon>
<hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
</IconStyle>
<LabelStyle>
<color>ff00aaff</color>
</LabelStyle>
</Style>
Код: Выделить всё
var layers14 = new OpenLayers.Layer.Vector("Тестовый слой 14", {
projection: map.displayProjection,
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "l14.kml",
format: new OpenLayers.Format.KML({
extractStyles: true,
extractAttributes: true
})
})
}); var layers15 = new OpenLayers.Layer.Vector("Тестовый слой 15", {
projection: map.displayProjection,
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "l15.kml",
format: new OpenLayers.Format.KML({
extractStyles: true,
extractAttributes: true
})
})
Проштудировал OL но пока толку мало(((
Направьте в нужное русло(((