[OpenLayers-Users] Placemark location

Eric Lemoine eric.c2c at gmail.com
Sat Nov 22 17:12:37 EST 2008


Hi. Is your case case layer a Google layer? If so you need to set
sphericalMercator to true in the options passed to the Google layer
constructor (check out the spherical-mercator.html example), and have
OpenLayers reproject your KML data from 4326 to 900913.

Eric

2008/11/21, romain vidaud <romainvidaud at gmail.com>:
> Hello there !
>
> I have a kml file sending placemarks like
> <Placemark id="274172">
>             <name>Agglomération de Grenoble</name>
>             <styleUrl>#ATMO4</styleUrl>
>
> <Point><coordinates>5.72005587713513,45.1806892548478,8</coordinates></Point>
> </Placemark>
> The kml loads well, but, although points are correctly located with GEarth,
> openLayers draws them on a bad location. I tried to display my point with a
> marker object directly in my code page, and location is correct. I am
> missing something in my kml ? (comparing to the sundials sample, it seems
> quite the same).
>
> Thanks, Romain.
>
> --
> Pensez à notre planète, n'imprimez ce mail que si nécessaire
>


More information about the Users mailing list