[mapserver-users] Is there a way to change the background color atthe url?

Fawcett, David David.Fawcett at state.mn.us
Fri Feb 6 07:51:57 PST 2009


This URL should give you what you want:

http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/apps/workshop08/hellowo
rld.map&mode=map&map.imagecolor=255+255+255

David.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of boesiii
Sent: Friday, February 06, 2009 9:39 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Is there a way to change the background color
atthe url?



In my map file I specify the color using "IMAGECOLOR    205 205 205".
In my
main html template I have a button to setup a new webpage for nicer
printing but I would like the background to be white and not "205 205
205" (it's a light grey).  Is there anyway to change image color in the
url.

Below is the code from my html template:
<script language="javascript"> 
	function printmap_11x17() {
    var url =
"http://nira_201/cgi-bin/mapserv.exe?map=c:/ms4w/apps/niramap/htdocs/nir
amap.map&mapext=[mapext]&layers=[layers]&map_web=TEMPLATE+templates/prin
t_11x17.html&mapsize=1400+875";
    // alert(url);
    window.open(url);
  }
</script>

Here's my MAP file  http://n2.nabble.com/file/n2284718/niramap.map
niramap.map 
-- 
View this message in context:
http://n2.nabble.com/Is-there-a-way-to-change-the-background-color-at-th
e-url--tp2284718p2284718.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list