[mapserver-users] templates, queries & the web object

Ted Spradley tspradley at snoogems.com
Thu Oct 22 13:19:43 PDT 2009


Hi all,

The Mapserver Test Suite /featurenquery directory test.map includes

.
.

  WEB    
    IMAGEPATH "set in config.js"
    IMAGEURL "set in config.js"
    TEMPLATE test.html
    MAXSCALE 8000000
    MINSCALE  100000

    HEADER top.html # only used in conjunction with queries...
    FOOTER bottom.html
  END
.
.
# Then three default query layers like the following
  LAYER
    NAME usgs250kq
    DATA usgs250k
    STATUS DEFAULT
    TYPE QUERY
    HEADER "250k_top.html"
    FOOTER quad_bottom.html	
    CLASS
      TEMPLATE quad.html
    END
  END
.
.

  LAYER
    NAME counties
    DATA county
    STATUS DEFAULT
    TYPE POLYGON
    TOLERANCE 10
    HEADER "counties_header.html"
    FOOTER "counties_footer.html"
    CLASS
      TEMPLATE "counties.html"
      NAME "Minnesota Counties"
      COLOR 212 212 212
      OUTLINECOLOR 0 0 0
    END
  END
.
.

Does the inclusion of HEADER & FOOTER directives in the WEB object mean that
MapServer will begin
and end the query response with these files?  Then in between the WEB
HEADER/FOOTER look for any other layers to be queried and use their
HEADER/TEMPLATE/FOOTER combinations?

Thank you,
Ted S.


-- 
View this message in context: http://n2.nabble.com/templates-queries-the-web-object-tp3874780p3874780.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list