Contents
Introduction
What This Guide Covers
Essential Concepts
Preparing to Run the Examples
Application Development
Resources and Repositories
Library and Session
Maps
Hello, Map – Displaying a Web Layout
Hello, Map 2 – Adding a Custom Command
Web Layouts and MapGuide Server Pages
MapGuide Page Flow
Example Code
How This Page Works
Understanding Services
The MapGuide Viewer
Introduction
Custom Commands
Understanding Viewer Frames
MapGuide Viewer API
Calling the Viewer API with an Invoke Script Command
Calling the Viewer API from the Script Frame
Calling the Viewer API from the Task Pane
Extending Map Initialization Functionality
The Hello Viewer Sample
Embedding a Viewer in Your Own Page
Interacting With Layers
Overview of Layers
Basic Layer Properties
Layer Groups
Base Layer Groups
Layer Style
Layer Visibility
Example: Actual Visibility
Enumerating Map Layers
Example
Manipulating Layers
Changing Basic Properties
Example
Changing Visibility
Working With Feature Data
Overview of Features
Querying Feature Data
Feature Readers
Selecting with the Web API
Basic Filters
Examples
Spatial Filters
Creating Geometry Objects From Features
Examples
Example: Selection
Active Selections
Selecting with the Viewer
Passing Viewer Information to the Web Server
Additional Parameters to an Invoke URL Command
Passing Parameters From an Invoke Script command
Passing Parameters From the Task Pane Frame
Working With the Active Selection
Example: Listing Selected Parcels (AJAX or DWF
Viewer)
Example: Listing Selected Parcels (AJAX Viewer
only)
Setting the Active Selection With the Web API
Example: Setting the Active Selection
Modifying Maps and Layers
Introduction
Adding An Existing Layer To A Map
Creating Layers By Modifying XML
Another Way To Create Layers
Example - Creating A Layer That Uses Area Rules
Example - Using Line Rules
Example - Using Point Rules
Adding Layers To A Map
Making Changes Permanent
Analyzing Features
Introduction
Representation of Geometry
Geometry Objects
Comparing Geometry Objects
Coordinate Systems
Measuring Distance
Temporary Feature Sources
Inserting, Deleting, and Updating Features
Creating a Buffer
Example
Digitizing and Redlining
Introduction
Digitizing
Redlining
Passing Coordinates
Creating a Feature Source
Creating A Layer
Custom Output
Introduction
Rendering Service
Mapping Service