[ka-Map-users] map color

Dylan Beaudette dylan.beaudette at gmail.com
Fri Feb 23 19:06:06 EST 2007


Hi,

note that ka-map tiles your data once, and then serves up the tiles. changes 
in the map file will not be rendered until tiles are re-generated.

cheers,

dylan

On Friday 23 February 2007 14:59, Agustina Buccella wrote:
> 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!

-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341



More information about the ka-Map-users mailing list