Controlling mapsize in CGI
Richard A. Milewski
ram at RAMPAGE.NET
Fri Mar 11 09:26:41 PST 2005
Blaise,
I can't see how it could be a mapfile problem. The map works find without
the Javascript to stuff the size drop-down. But then, I'm a Mapserver
neophyte so there's probably something critical I'm missing.
Thank you for helping! Here's the mapfile:
# Start of Mapfile (GeoReg.map)
MAP
NAME GeoReg
STATUS ON
SIZE 1200 600
EXTENT -14255599.173549 511074.380180 -7644028.925639 7122644.628090
# EXTENT -122 36 -120 38
IMAGETYPE gif
SHAPEPATH "../../gisdata"
IMAGECOLOR 30 28 125
# Map projection definition
PROJECTION
"proj=merc"
"ellps=WGS84"
# "init=epsg:4326"
END
# Map interface definition
WEB
LOG "/var/www/WebRoots/WxServer/html/mapserver/logs/mapserver.log"
TEMPLATE "GeoRegTemplate.html"
IMAGEPATH "/var/www/WebRoots/WxServer/html/mapserver/tmp/"
IMAGEURL "/mapserver/tmp/"
END
# Our states shapefile
LAYER
TYPE POLYGON
STATUS ON
NAME bkgnd0
DATA "NorthAmerica/USA/Lower48"
PROJECTION
"init=epsg:4326"
END
CLASS
OUTLINECOLOR 0 0 0
COLOR 200 200 200
END
END
# The Shaded Land Mass - High Resolution
LAYER
TYPE RASTER
STATUS OFF
NAME bkgnd1
DATA "NorthAmerica/USA/Raster/48USAcolshade.jpg"
PROJECTION
"init=epsg:4326"
END
END
# The Shaded Land Mass - Desaturated, Low Resolution
LAYER
TYPE RASTER
STATUS OFF
NAME bkgnd2
DATA "NorthAmerica/USA/Raster/48USAcolshadeLowRes.jpg"
PROJECTION
"init=epsg:4326"
END
END
# Our Test Image
LAYER
TYPE RASTER
STATUS ON
NAME TestImage
DATA "Test/TestImage.gif"
PROJECTION
"proj=merc"
"ellps=WGS84"
# "init=epsg:4326"
END
END
# Oh Canada!
LAYER
TYPE Polygon
STATUS ON
NAME province
DATA "NorthAmerica/Canada/province"
PROJECTION
"init=epsg:42304"
END
CLASS
COLOR 220 220 220
OUTLINECOLOR 0 0 100
END
END # of Layer
# Mexico
LAYER
TYPE POLYGON
STATUS ON
NAME Mexico
DATA "NorthAmerica/Mexico/Mexico"
PROJECTION
"init=epsg:4326"
END
CLASS
COLOR 220 220 220
OUTLINECOLOR 0 0 100
END
END # of Layer
# Caribbean
LAYER
TYPE POLYGON
STATUS ON
NAME Caribbean
DATA "NorthAmerica/Caribbean/Caribbean"
PROJECTION
"init=epsg:4326"
END
CLASS
COLOR 220 220 220
OUTLINECOLOR 0 0 100
END
END # of Layer
# Our Geo-referenced RADAR layer
LAYER
TYPE RASTER
STATUS ON
NAME radar
DATA "Radar/radar_0.png"
PROJECTION
"init=epsg:4326"
END
OFFSITE 0 0 0
END
# NOAA METAR Overlay
LAYER
TYPE RASTER
STATUS ON
NAME FLTC
DATA "NOAA/FLTC.gif"
PROJECTION
"proj=merc"
"ellps=WGS84"
END
END
# NOAA RCM Overlay
LAYER
TYPE RASTER
STATUS ON
NAME RCM
DATA "NOAA/radar.gif"
PROJECTION
"proj=merc"
"ellps=WGS84"
END
END
# NOAA Wind05 Overlay
LAYER
TYPE RASTER
STATUS ON
NAME Wind05
DATA "NOAA/Wind05.gif"
PROJECTION
"proj=merc"
"ellps=WGS84"
END
END
# NOAA Wind10 Overlay
LAYER
TYPE RASTER
STATUS ON
NAME Wind10
DATA "NOAA/Wind10.gif"
PROJECTION
"proj=merc"
"ellps=WGS84"
END
END
# NOAA Wind14 Overlay
LAYER
TYPE RASTER
STATUS ON
NAME Wind14
DATA "NOAA/Wind14.gif"
PROJECTION
"proj=merc"
"ellps=WGS84"
END
END
# NOAA Wind18 Overlay
LAYER
TYPE RASTER
STATUS ON
NAME Wind18
DATA "NOAA/Wind18.gif"
PROJECTION
"proj=merc"
"ellps=WGS84"
END
END
# NOAA Wind24 Overlay
LAYER
TYPE RASTER
STATUS ON
NAME Wind24
DATA "NOAA/Wind24.gif"
PROJECTION
"proj=merc"
"ellps=WGS84"
END
END
# NOAA Wind30 Overlay
LAYER
TYPE RASTER
STATUS ON
NAME Wind30
DATA "NOAA/Wind30.gif"
PROJECTION
"proj=merc"
"ellps=WGS84"
END
END
# Our states shapefile (for state lines on raster images and over big storms)
LAYER
TYPE Line
STATUS ON
NAME states
DATA "NorthAmerica/USA/Lower48"
PROJECTION
"init=epsg:4326"
END
CLASS
OUTLINECOLOR 0 0 100
END
END # of Layer
END # End of mapfile
More information about the MapServer-users
mailing list