[OpenLayers-Users] Mapserver serves tiled images
Asle Benoni
asle.benoni at gmail.com
Tue Mar 10 17:22:49 EDT 2009
Hi,
I am new to open layers. I am running mapserver on OS X and
openlayers. I have a problem where the map is tiled, repeating itself.
I have read the FAQ
http://faq.openlayers.org/map/why-do-i-see-repeated-chopped-off-labels-in-my-map/
I put "PARTIALS FALSE" in the map file like this (first part of map
file):
The section "PARTIALSE FALSE" seems to have no effect on the
duplicated map.
MAP
NAME Kulturminner
# Map image size
SIZE 1000 800
UNITS meters
EXTENT 614513.270856 6577804.103033 651925.853055 6600029.399389
PROJECTION
'proj=utm'
'zone=32'
'ellps=WGS84'
'datum=WGS84'
'units=m'
'no_defs'
''
END
# Background color for the map canvas -- change as desired
IMAGECOLOR 192 192 192
IMAGEQUALITY 95
IMAGETYPE png
OUTPUTFORMAT
NAME png
DRIVER 'GD/PNG'
MIMETYPE 'image/png'
#IMAGEMODE PC256
EXTENSION 'png'
END
# Legend
LEGEND
IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
PARTIALS FALSE
END
END
....and then the layers definitions here....
I have no other LABEL definitions on the layers. Should I have?
I also looked at the JS to see if "maxExtent" had to do with it but I
am not sure how to specify this:
layer = new OpenLayers.Layer.MapServer( 'Østfold',
'http://naturkart.no/cgi-bin/mapserv', {map: '/Library/
WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demowms.map'},
isBaseLayer='true' ),
{maxExtent: new
OpenLayers.Bounds(614513,6577804,651926,6600029.4),'maxResolution':
'auto'});
- the above syntax does not seem to work...
I can provide the map file if anyone has time :-)
Thanks as always!
/asle
More information about the Users
mailing list