MAP NAME "uaeumaps" STATUS ON SIZE 800 640 # output image size; MapFish will overwrite this IMAGECOLOR 255 255 255 # background image color IMAGETYPE PNG # image type, can be png, jpeg, tiff, gif, etc. #If using ESRI Shapefiles, define the location SHAPEPATH "/var/www/uaeumaps/data/shapefiles" UNITS dd # where dd = decimal degrees EXTENT -110.25 30.518768 -102.001961 37.500294 # Projection of the output mapfile PROJECTION "init=epsg:32640" END # define the fonts for annotations and path to file FONTSET "fonts/font.list" # define the symbology and path to file SYMBOLSET "symbols.sym" ##### Define uaeumaps layer from Postgresql ######### LAYER NAME "campus" STATUS on # do not render layer in map TYPE point CONNECTIONTYPE postgis CONNECTION "user=uaeumaps dbname=uaeumaps password=123456 host=localhost" DATA "the_geom from campus" # MINSCALE 500 # MAXSCALE 2000000 LABELITEM "gwelev" LABELMAXSCALE 50000 PROJECTION "init=epsg:32640" # projection of map loaded into Postgresql END CLASS # define the layer symbology NAME "campus" STYLE COLOR 102 0 0 SYMBOL "point_triangle" SIZE 10 END LABEL TYPE truetype # use truetype font FONT "Arial" # use arial SIZE 8 # use 8 point size COLOR 102 0 0 BACKGROUNDCOLOR 200 200 200 # render text on white bg MINDISTANCE 50 # labels > 50 pixels apart POSITION auto ANTIALIAS true # antialias the text PARTIALS false # draws layers across tiles END END # end of class END # end of campus layer END # end of mapfile