[OpenLayers-Users] lat lng from tile
Kenny France
kenny at xarex.com
Fri Aug 29 13:24:22 EDT 2008
Thanks chris,
That's was to easy , sorry I missed it
K-
-----Original Message-----
From: Chris Adams [mailto:chris at genieknows.com]
Sent: 29 August 2008 19:18
To: Kenny France
Cc: Users at openlayers.org
Subject: Re: [OpenLayers-Users] lat lng from tile
resolution = latLongSize/pixelSize
so if your tile is 300 by 300, and you want this zoom level to exactly
fit each tile within 2.56 degrees then,
res = 2.56/300
res = 0.008533333
Kenny France wrote:
> Hi Guys,
>
> I am busy with my first OpenLayers App, and have run into a question,
> I hope someone out there has a answer for me :(
>
> I was looking at the docs, and i think i need to use the resoloution
> function, but i can get it to work somehow :(
>
> Lets say I have a tiles, 300 x 300 px
>
> at Zoom level 1 this equates to 5.12 (Decimal degrees) so 300 = 5.12
> at Zoom level 2 this equates to 2.56 (Decimal degrees) so 300px = 2.56
> etc...
>
> Is it possible to do set the scale like that ?
>
> also at min zoom i want to only show a certain area, can i somehow add
> top left co-ordinates, bottom right ?
>
> thanks for you help
>
> K-
>
>
>
> ----------------------------------------------------------------------
> --
> I am using the free version of SPAMfighter for private users.
> It has removed 38312 spam emails to date.
> Paying users do not have this message in their emails.
> Try SPAMfighter <http://www.spamfighter.com/len> for free now!
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org http://openlayers.org/mailman/listinfo/users
>
_____
I am using the free version of SPAMfighter for private users.
It has removed 38312 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter <http://www.spamfighter.com/len> for free now!
More information about the Users
mailing list