MapServer QUERYMAP Object

This is compulsory if you wish to perform a Zoom to Polygon function to return an image of a particular feature otherwise MapServer does not create a map image.

QUERYMAP Object
QUERYMAP
	STATUS ON
	STYLE HILITE
	SIZE -1 -1
	COLOR 255 255 0
END

Element

Description

Example

STATUS

Whether a layer is shown or not.

The two main ones to look at here are OFF and DEFAULT.

DEFAULT means it will always be drawn.

OFF means that iShare will control the visibility – although Zoom layering still applies.

OFF

ON

DEFAULT

STYLE

Highlight the border of the polygon

Hide all other polygons

HILITE

SELECTED

COLOR

RGB settings for the border of the polygon

e.g. 255 255 0

SIZE

Size of the map in pixels. Defaults to the size defined in the map object

 

For full details of the MapServer QUERYMAP Object please see the MapServer QUERYMAP Documentation.

Â