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@openlayers.org > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users