[OpenLayers-Users] Map Aspect Ratio Seems Off (Makes layers
wide)
soatley
shawn at niagarafalls.ca
Mon Jun 22 15:42:37 EDT 2009
Andreas,
Thank you for that information! You've solved my problem and even fixed one
of my todo items of getting the MousePosition into UTM!
Thanks!!!!
Shawn
Andreas Hocevar-2 wrote:
>
> Hi,
>
> On Fri, Jun 19, 2009 at 10:38 PM, soatley<shawn at niagarafalls.ca> wrote:
>
> Your co-workers are right. Maps in geographic coordinates (EPSG:4326)
> look like that. The further you get away from the equator, the more
> the map will be shrunk in latitudinal direction. This is not a bug,
> but a matter of choosing the appropriate map projection.
>
>> The GIS staff tell me that our data is projected in UTM 17N NAD83.
>
> The EPSG code for this projection is probably EPSG:26917. See
> http://spatialreference.org/ref/epsg/26917/
>
> So the two things to change in your code is that you set the
> projection to EPSG:26917 instead of EPSG:4326, set units to "m"
> (meters), and provide the maxExtent in projected coordinates.
>
> Regards,
> Andreas.
>
>
>
>
--
View this message in context: http://n2.nabble.com/Map-Aspect-Ratio-Seems-Off-%28Makes-layers-wide%29-tp3122010p3138291.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list