[ka-Map-users] map color
Agustina Buccella
agustina_buccella at yahoo.com.ar
Fri Feb 23 17:59:16 EST 2007
I am new in ka-map and in mapserver!! I have installed mapserver, postgis and ka-map and I can run the program perfectly... but I want to change the map color,, that is, I want a layer has one color (in the map) and another layer has another color... the following is my .map file, but when I change the COLOR and OUTLINECOLOR inside the LAYER definitions, the map color in the web (by using ka-map) is always the same.... how can I change the color of the rivers (for example, if it is a layer) in the map image????
argentina.map file
MAP
EXTENT -73.577781 -55.061313 -53.591835 -21.781276
SIZE 400 400
# IMAGECOLOR 255 22 22
UNITS METERS
IMAGETYPE PNG
# TRANSPARENT ON
SYMBOLSET ../etc/symbols.sym
UNITS METERS
IMAGECOLOR 255 255 255
FONTSET ../etc/fonts.txt
LEGEND
TRANSPARENT TRUE
END
SCALEBAR
TRANSPARENT TRUE
END
WEB
METADATA
max_extents "-73.577781 -55.061313 -53.591835 -21.781276"
END
# MINSCALE 20.00000
# MAXSCALE 500.00000
IMAGEPATH "/usr/local/apache2/htdocs/tmp"
IMAGEURL "/tmp/"
END
#
# Start of reference map
#
REFERENCE
IMAGE ../images/keymap.png
EXTENT -73.577781 -55.061313 -53.591835 -21.781276
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 95 158 160
SIZE 120 90
END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END
SIZE 150 5
COLOR 255 255 255
BACKGROUNDCOLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS kilometers
INTERVALS 5
STATUS ON
END
QUERYMAP
STYLE HILITE
COLOR 255 0 0
END
#
# Start of layer definitions
#
LAYER
NAME "contorno"
GROUP "CONTORNO"
CONNECTIONTYPE postgis
CONNECTION "host=10.0.3.218 port=5432 dbname=argentina password=**** user=****"
DATA "the_geom FROM argentina1"
TYPE POLYGON
STATUS ON
# DEBUG ON
CLASS
TEMPLATE "template.html"
END
METADATA
"queryable" "true"
END
CLASS
STYLE
COLOR 34 139 34
OUTLINECOLOR 190 190 190
SYMBOL 0
END
END
END
LAYER
NAME "limites provincia"
GROUP "PROVINCIAS"
CONNECTIONTYPE postgis
CONNECTION "host=10.0.3.218 port=5432 dbname=argentina password=**** user=*****"
DATA "the_geom FROM argentina2"
TYPE POLYGON
STATUS ON
# DEBUG ON
CLASS
STYLE
COLOR 184 134 11
OUTLINECOLOR 120 120 120
SYMBOL 0
END
END
END
LAYER
NAME "limites ciudad"
GROUP "DISTRITOS"
CONNECTIONTYPE postgis
CONNECTION "host=10.0.3.218 port=5432 dbname=argentina password=**** user=*****"
DATA "the_geom FROM argentina3"
TYPE POLYGON
STATUS ON
# DEBUG ON
CLASS
STYLE
COLOR 147 112 219
OUTLINECOLOR 199 199 199
SYMBOL 0
END
END
END
END
thanks!!
Agustina
---------------------------------
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
Probalo ya!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20070223/e45cc448/attachment.html
More information about the ka-Map-users
mailing list