[OpenLayers-Users] Problems with tiled map and zoom

Christopher Schmidt crschmidt at metacarta.com
Thu Mar 12 09:54:48 EDT 2009


On Thu, Mar 12, 2009 at 02:39:25PM +0100, Asle Benoni wrote:
> Hello,
> I have a mapserver file that is only a small section of Norway. This map
> shows up correctly when I call the map like this:
> http://naturkart.no/cgi-bin/demo?map=/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demowms.map&mode=map

http://docs.openlayers.org/library/layers#mapserver

> But when I put the mapfile into Openlayers it zooms out to Norway overview
> and is repeated 3 times.
> I have tried different thing to get it to zoom in but without luck.
> 
> Here is the script I am using now:
>    map = new OpenLayers.Map( 'map' );
>     layer = new OpenLayers.Layer.MapServer( "Østfoldkart",
>        "http://naturkart.no/cgi-bin/mapserv", {map:
> '/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demowms.map'}
> );
>     map.addLayer(layer);
>     map.zoomToMaxExtent();
> 
> I tried to use "PARTIALS FALSE" but now really sure where to put it. Any
> ideas?
> 
> /asle

> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list