[OpenLayers-Users] Polygon Layer Projection

Diego Guidi diegoguidi at gmail.com
Fri Oct 12 07:25:46 PDT 2012


http://docs.openlayers.org/library/spherical_mercator.html#working-with-projected-coordinates


Diego Guidi


On Fri, Oct 12, 2012 at 4:23 PM, uk52rob <uk52rob at yahoo.co.uk> wrote:
>
>> I have the map projection set to EPSG:4326 (does not seem to make a
>> difference whether it's 4326 or Google's 900913).
>> I have loaded Google layers (OpenLayers.Layer.Google).
>
> AFAIK as I know, if you add this kind of layer, your map goes to
> google projection, so you need to add data in 900913 (or translate
> them).
>
> Thanks Diego, do you know of an easy way to convert 900913 vertices to 4326
> on the fly, or do I need to do this after the feature has been created?
>
> I can pass all this back to PostGIS I guess and let that do the translation,
> but I would prefer to do this at the javascript level.
>
> Regards
>


More information about the Users mailing list