[OpenLayers-Users] reprojection problem [SOLVED]
Christopher Schmidt
crschmidt at metacarta.com
Wed Nov 12 07:13:34 EST 2008
On Wed, Nov 12, 2008 at 12:36:28PM +0100, Didrik Pinte wrote:
> Hi list,
>
> I've solved the problem by loading the data in the layer using a GeoJSON
> format object with an internal and external projection defined. It works
> fine now.
>
> This does not explain why adding the features directly to the layer did
> not work ...
Geometries are only reprojected by OpenLayers if they are created by
OpenLayers. So, formats -- which call new OpenLayers.Geometry, are
transforming the gemoetries at that time, but the vector layer does not
transfrm when you add to it.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list