Hi all,
I’ve done KMLs with and
All is ok when I use them on Google Earth.
But with OpenLayers 2.7, nothing is displayed, where is the problem ?
Other KML without works very well on the application.
in the JS
// creation de la couche SYNOP
var synop = new OpenLayers.Layer.GML(
"SYNOP",
"../kml/synop.kml" ,
{projection: new OpenLayers.Projection("EPSG:4326"), formatOptions: {extractAttributes: true, extractStyles: true},
format: OpenLayers.Format.KML, maxDepth: 2}
)
part of the main KML
<NetworkLink>
<Region>
<LatLonAltBox>
<north>-20</north>
<south>-30</south>
<east>-160</east>
<west>-180</west>
</LatLonAltBox>
</Region>
<Link>
<href>synopGA.kml</href>
<viewRefreshMode>onRegion</viewRefreshMode>
</Link>
</NetworkLink>
part of Link KML
40 30 60 40 <Placemark>
<name>oups</name>
<styleUrl>#point-3</styleUrl>
<description>
hello
</description>
<Point>
<coordinates>41.1667,39.95</coordinates>
</Point>
</Placemark>
Thank’s for yours ideas !