[ka-Map-users] Shape HILITE

Absar Ali absarz at hotmail.com
Thu Jun 15 01:48:46 EDT 2006


I am a new user of mapserver how can i select the shape which should be 
hilited, and the info (data base values of shape) of the selected shape. 
below is my map file. please guide me i am very confuse,

Regards,

Absar Ali.
____________________________________________________________________________



NAME Karachi
STATUS ON


SIZE 800 600
SHAPEPATH "karachiShape"

WEB
IMAGEPATH "C:/tmp/"
IMAGEURL "C:/tmp/"
END


EXTENT 40.2283 -5.55177 49.7201 1.8823
UNITS dd
IMAGECOLOR 255 255 255
IMAGETYPE png

QUERYMAP
	STATUS ON
	# the map is queryable by default
	STYLE HILITE
	# the selected object is highligthed
	COLOR 255 0 0
END

LAYER
  NAME charge_polyline
  TYPE LINE
  STATUS OFF
  DATA CHARGE_polyline
  CLASS
    NAME "CHARGE_polyline"
    OUTLINECOLOR 3 97 136
  END
END
LAYER
  NAME charge_region
  TYPE POLYGON
  STATUS ON
  DATA CHARGE_region
  LABELITEM "name"
  CLASS
    NAME "CHARGE_region"
    COLOR 146 154 155
    OUTLINECOLOR 43 170 115
         LABEL
	        MINFEATURESIZE 40
	        MINDISTANCE 150
	        POSITION CC
	        SIZE TINY
	        COLOR 0 0 0
      END
  END
END
LAYER
  NAME circle_region
  TYPE POLYGON
  STATUS OFF
  DATA CIRCLE_region
  LABELITEM "name"
  CLASS
    NAME "CIRCLE_region"
    COLOR 90 15 155
    OUTLINECOLOR 200 205 133
         LABEL
	        MINFEATURESIZE 40
	        MINDISTANCE 150
	        POSITION CC
	        SIZE TINY
	        COLOR 0 0 0
      END
  END
END
LAYER
  NAME important_locations_point
  TYPE POINT
  STATUS OFF
  DATA "IMPORTANT LOCATIONS_point"
  CLASS
    NAME "IMPORTANT LOCATIONS_point"
  END
END
LAYER
  NAME town_region
  TYPE POLYGON
  STATUS OFF
  DATA TOWN_region
  LABELITEM "name"
  CLASS
    NAME "TOWN_region"
    COLOR 77 224 186
    OUTLINECOLOR 244 237 138
         LABEL
	        MINFEATURESIZE 40
	        MINDISTANCE 150
	        POSITION CC
	        SIZE TINY
	        COLOR 0 0 0
      END
  END
END
LAYER
  NAME town_text
  TYPE POINT
  STATUS OFF
  DATA TOWN_text
  CLASS
    NAME "TOWN_text"
  END
END
LAYER
  NAME union_council_region
  TYPE POLYGON
  STATUS ON
  DATA "UNION COUNCIL_region"
   LABELITEM "name"
  CLASS
    NAME "UNION COUNCIL_region"
    COLOR 37 118 61
    OUTLINECOLOR 220 54 199
         LABEL
	        MINFEATURESIZE 40
	        MINDISTANCE 150
	        POSITION CC
	        SIZE TINY
	        COLOR 0 0 0
      END
  END
END
END




More information about the ka-Map-users mailing list