Web Map Context Demo
- Drag to pan, use the mouse wheel to zoom in and out.
|
|
In this demo the Legato map client is configured by two files:
- config.xml determines how the map client should appear;
- viewContext.xml defines which map content should be displayed.
This example is functionally the same as the simple demo, but the map client configuration is now split into two files: look and feel is configured separately from the content, control is separated from the data.
The
config.xml file configures a map
viewer with a single navigation control which supports panning and
zooming. This configuration also includes the
ExtendedWMCLoader
which loads layers from a separate
viewContext.xml
file. This is done after the map client is created using an
additional AJAX request.
The file
viewContext.xml is a
Web Map Context
specification of the map content. It describes which layers of which
servers should be displayed by the map client as well as some general
information such as size of the map client frame (the
Window
element) and the initial bounding box.
For more details on the configuration please see the files config.xml and viewContext.xml files.
See the Web Map Context Tutorial for more information.