Map Services
The static class FDOT.GIS.Client.Domain.Gis.MapHandler gives the developer access to the map services that are currently loaded into the application.
Map Handler - Map Services¶
| Name | Type | Descriptions |
|---|
| BaseMaps | ReadOnlyObservableCollection<MapService> | Contains all of tiled MapServices |
| DynamicLayers | ReadOnlyObservableCollection<MapService> | Contains all of the dynamic mapservices |
| Layers | ReadOnlyObservableCollection<MapService> | All of the MapServices currently loaded in the application |
| FlattenedLayers | ReadOnlyObservableCollection<DisplayLayer> | Flattens all of the layers in the mapservice that are grouped into a single list |
| QueryableLayers | ReadOnlyObservableCollection<DisplayLayer> | All of the layers that have been configured as queryable |
MapService Class
The FDOT.GIS.Client.Domain.Gis.MapService class represents an ArcGis Server MapService that has been configured for the
Virtual Applications.
Properties
| Name | Type | Description |
|---|
| AlternateIdentifyServiceName | string | The name of an alternative map service to use for identifying if the current mapservice does not support identify. |
| InitializationFailed | bool | Indicates if the map service initialization failed. |
| IsQueryable | bool | Returns if the map service can be queried. |
| IsViewable | bool | Returns if the map service can be viewed. |
| IsVisible | bool | Return if the map service is currently visible on the map. |
| Layers | ReadOnlyObservableCollection<DisplayLayer> | Returns the layers in the MapService |
| MapServiceName | string | The name of the MapService |
| Name | string | The configured name of the MapService |
| Opacity | double | The opacity of the mapservice on the map. |
| Url | string | The url of the map service. |
| Visible | bool | The visibility of the map service on the map. |
Methods
| Name | ReturnType | Description |
|---|
| LoadSwatches() | void | Loads the swatches for the layers in the map service. |
Zooming,Panning, and Map Status¶
Through the MapHandler class developers can pan and zoom to features on the map.
Methods
| Name | ReturnType | Description |
|---|
| GetExtent() | Geometry | Returns the current extent of the map |
| PanToGeometry(Geometry geometry) | void | Pans the map to geometry |
| SetExtent(DataContracts.Geometry envelope) | void | Sets the current extent of the map. |
| Zoom(double zoomFactor) | void | Zooms the map by the provided zoom factor. |
| ZoomToGeometry(Geometry geometry) | void | Zooms the map to the provided Geometry. |
Zoom To Geometry Example
var geoPnt = new DataContracts.Geometry {X = Longitude, Y = Latitude};Selecting Geometry
The Framework has built in functionality for the selection of geometry from a user.
GeometryDrawing Geometry
DrawingGeometry
See Also