| 182 | ==== !MapViewport Resource schema ==== |
| 183 | |
| 184 | The !MapViewport resource represents a viewport displaying a map. It has all the information that is needed to define the extents, scale, rotation, map view characteristics, etc. Here’s the schema: |
| 185 | |
| 186 | [[BR]] |
| 187 | [[Image(MapViewportType.PNG)]] |
| 188 | [[BR]] |
| 189 | |
| 190 | The !MapViewport resource contains !MapName property, which is the name of the map the viewport is displaying. Note that this is only temporary until support for fully integrated Map Definition resources are in place accross all applications (This support will be outlined in a separate RFC to follow). When applications other than !MapGuide truely support Map Definition, we will remove !MapName property as we could add the resource id of Map Definition resource in the References collection. Some of the properties (e.g., !CenterPoint) shown above may not be needed, but those modifications will be made the schema evolves. The !VisibleLayers collection contains the names of Gis layers that need to be visible in the map viewport. The !MapView property contains all the properties related to the view of the map. The Center property of !MapView is the center point of the view in model units. The Height property specifies the height of the view in model units. The !ModelUnits provide information about the units of the model space. The !ViewDirection property fully specifies the direction vector of the view. |
| 191 | |