To see this example in action, open `mfd1.map` and replace the WEB FOOTER line like so:
WEB
...
#FOOTER '../templates/footer.html'
FOOTER '../templates/footer_querymap.html'
...
END
And add the QUERYMAP object:
QUERYMAP
SIZE 200 150
STATUS ON
STYLE HILITE # SELECTED | NORMAL
COLOR 255 0 0
END
Querying a map image object is used to highlight or make a prominent feature, requesting a query on a map or by multiple queries. This means you can display your query results and a map showing the selection query function.
View the MapFile |
View the HTML Template
45 | HEADER "../maptmpl/example3_header.html" | 45 | HEADER "../maptmpl/example3_header.html" | ||
n | 46 | FOOTER "../maptmpl/example3_footer.html" | n | 46 | FOOTER "../maptmpl/example3_footer_querymap.html" |
47 | TEMPLATE "to be replaced by map_web_template variable in section3.html" | 47 | TEMPLATE "to be replaced by map_web_template variable in section3.html" | ||
54 | END | 54 | END | ||
t | t | 55 | END | ||
56 | QUERYMAP | ||||
57 | SIZE 200 150 | ||||
58 | STATUS ON | ||||
59 | STYLE HILITE | ||||
60 | COLOR 255 0 0 | ||||
55 | END | 61 | END |