Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

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

NameTypeDescriptions
BaseMapsReadOnlyObservableCollection<MapService>Contains all of tiled MapServices
DynamicLayersReadOnlyObservableCollection<MapService>Contains all of the dynamic mapservices
LayersReadOnlyObservableCollection<MapService>All of the MapServices currently loaded in the application
FlattenedLayersReadOnlyObservableCollection<DisplayLayer>Flattens all of the layers in the mapservice that are grouped into a single list
QueryableLayersReadOnlyObservableCollection<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

NameTypeDescription
AlternateIdentifyServiceNamestringThe name of an alternative map service to use for identifying if the current mapservice does not support identify.
InitializationFailedboolIndicates if the map service initialization failed.
IsQueryableboolReturns if the map service can be queried.
IsViewableboolReturns if the map service can be viewed.
IsVisibleboolReturn if the map service is currently visible on the map.
LayersReadOnlyObservableCollection<DisplayLayer>Returns the layers in the MapService
MapServiceNamestringThe name of the MapService
NamestringThe configured name of the MapService
OpacitydoubleThe opacity of the mapservice on the map.
UrlstringThe url of the map service.
VisibleboolThe visibility of the map service on the map.

Methods

NameReturnTypeDescription
LoadSwatches()voidLoads 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

NameReturnTypeDescription
GetExtent()GeometryReturns the current extent of the map
PanToGeometry(Geometry geometry)voidPans the map to geometry
SetExtent(DataContracts.Geometry envelope)voidSets the current extent of the map.
Zoom(double zoomFactor)voidZooms the map by the provided zoom factor.
ZoomToGeometry(Geometry geometry)voidZooms 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. Geometry

Drawing Geometry

DrawingGeometry

See Also

Any Questions or Comments? Email
Some of the icons created by FamFamFam.