Loading...
 
Skip to main content

History: Maps MapView

Source of version: 21 (current)

Copy to clipboard
             {include page="system\~killnotes2016" start="!start killnote MapServer" stop="!stop killnote MapServer"}


{DIV(class=titlebar)}Table of Contents{DIV}




{DIV(class=titlebar)} {DIV}


# Working with Views

Please read the documentation of [http://mapserver.gis.umn.edu/|the Mapserver] and read the ((Maps Mapfile Tutorial)) if you need to learn the basics of a Mapfile.

## Creating Views

### Specifing the View

The VIEW must be used as VIEW1,VIEW2,VIEW(n)...VIEW30. Followed by a location id/location name and the extents in double qoutes. 
{BOX()}~pp~
VIEW1 "location id,  "
VIEW2 "location id,  "
VIEW3 "location id,  "
...
...
VIEW30 "location id,  "
~/pp~{BOX}

### Set View Extents

Get the map extents for the view you want to display and set the minx, miny, maxx, maxy values inside the double qoutes " " separated by coma ','.

{BOX()}~pp~
VIEW1 "location id,minx,miny,maxx,maxy"
~/pp~{BOX}

## Adding in the Views

A Mapfile contains a WEB object. Inside the WEB object the METADATA keyword can be used to store your views and close it with an END. You can have up to a maximum of 30 views. 
{BOX()}~pp~
#
# Start of web interface definition
#
WEB
  ...
  ....
  .....
  METADATA
    VIEW1 "location id,minx,miny,maxx,maxy"
    VIEW2 "location id,minx,miny,maxx,maxy"
    VIEW3 "location id,minx,miny,maxx,maxy"
    ....
    ...
    VIEW30 "location id,minx,miny,maxx,maxy"
  END
  ....
  ...
  
END
~/pp~{BOX}
        
Collapse/expand modules below