[OpenLayers-Users] OpenLayers + MapServer + Own maps
showing miniature tiles
Christopher Schmidt
crschmidt at metacarta.com
Fri Feb 12 09:17:31 EST 2010
On Fri, Feb 12, 2010 at 06:14:02AM -0800, Henrik Collin wrote:
>
> I changed the maxExtent and Resolution and it did some good.
>
> This is how it looks now:
>
> maxResolution: 20000,
> maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34,
> 20037508.34)
>
> The scale of the map is 1:20000 in meters and that Extent is the max extent
> of the epsg:2393.
I pretty seriously doubt that.
http://spatialreference.org/ref/epsg/2393/
In addition, 1:20000 *scale* and 1:20000 resolution are not the same thing.
> It now draws a box into the map with the background color
> defined in the wms.map and the dots I am drawing are in a correct place in
> this box. The actual map pictures are still drawn way out of bounds and they
> are still too small.
Because your maxExtent is still totally wrong :)
> Am I using the maxResolution correctly? And if not how am I able figure out
> the correct resolution?
Generally speaking: width of maxExtent / mapWidth (512,256, etc.)
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list