Click or drag to resize

MapView Class

The main WPF map.
MapView
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsContentControl
                System.Windows.ControlsUserControl
                  Ptv.XServer.Controls.MapMapView
                    Ptv.XServer.Controls.Map.GadgetsMagnifierMapView
                    Ptv.XServer.Controls.Map.GadgetsOverviewMapView

Namespace:  Ptv.XServer.Controls.Map
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public class MapView : UserControl, IComponentConnector

The MapView type exposes the following members.

Constructors
  NameDescription
Public methodMapView
Initializes a new instance of the MapView class.
Top
Properties
  NameDescription
Public propertyCenter
Gets or sets the center of the map.
Public propertyCurrentEnvelope
Gets the bounding box of the visible map section while the map is in animation mode.
Public propertyCurrentScale
Gets the scale factor while the map is in animation mode. Defined in Logical units per pixel.
Public propertyCurrentX
Gets the logical x-coordinate while the map is in animation mode.
Public propertyCurrentY
Gets the logical y-coordinate while the map is in animation mode.
Public propertyCurrentZoom
Gets the floating tile level while in animation mode.
Public propertyFinalEnvelope
Gets the anticipated bounding box of the visible map section after the map was in animation mode / the current box while the map is in animation mode.
Public propertyFinalScale
Gets the scale factor after the map was in animation mode / the anticipated scale factor while the map is in animation mode. Defined in logical units per pixel.
Public propertyFinalX
Gets the x-coordinate after the map was in animation mode / the anticipated x-coordinate while the map is in animation mode.
Public propertyFinalY
Gets the y-coordinate after the map was in animation mode / the anticipated y-coordinate while the map is in animation mode.
Public propertyFinalZoom
Gets the level of detail according to the standard tiling scheme (float value).
Public propertyFitInWindow
Gets or sets a value indicating whether the map should be fitted in the window or not.
Public propertyIsAnimating
Gets a value indicating whether an animation is in progress. Returns true while the map performs a transition to a new map section.
Public propertyMaxZoom
Gets or sets the maximal level of detail according to the standard tiling scheme. The current detail level (see FinalZoom property) is corrected, if it is higher than the new maximum value.
Public propertyMetersPerPixel
Gets the number of meters spanned by one pixel.
Public propertyMinZoom
Gets or sets the minimal level of detail according to the standard tiling scheme. The current detail level (see FinalZoom property) is corrected, if it is lower than the new minimum value.
Public propertyOriginOffset
Gets the origin offset value for Deep Zoom
Public propertyPrinting
Gets or sets a value indicating whether the printing of a map is in process.
Public propertyZoomScale
Gets or sets the current zoom scale value.
Top
Methods
  NameDescription
Public methodInitializeComponent
InitializeComponent
Public methodSetEnvelope(MapRectangle, Boolean)
Sets the visible map section to a bounding box, so the box is contained in the map section.
Public methodSetEnvelope(MapRectangle, Boolean, Double)
Sets the visible map section to a bounding box, so the box is contained in the map section.
Public methodSetXYZ(Double, Double, Double, Boolean)
Positions the map to a center and zoom factor.
Public methodSetXYZ(Double, Double, Double, Boolean, Boolean)
Positions the map to a center and zoom factor.
Public methodSetZoom
Sets the level of detail according to the standard tiling scheme.
Public methodZoomAround
Zooms around a point.
Top
Events
  NameDescription
Public eventViewportBeginChanged
Event indicating the beginning of a change of the visible map section. This event is intended for more longtime actions (for example reading DB-objects), when the map section will change.
Public eventViewportEndChanged
Event indicating the ending of a change of the visible map section. It is the counterpart of the event.
Public eventViewportWhileChanged
Event indicating an intermediate view, when animation mode is active. It can be used to adapt the size of WPF objects, or other actions, which are not time-consuming. This event may called multiple times, when animation mode is active.
Top
Fields
  NameDescription
Public fieldBackPaneCanvas
BackPaneCanvas Name Field
Public fieldStatic memberCenterProperty
Dependency property for the center of the map. This enables animation, styling, binding, etc...
Public fieldStatic memberEARTH_RADIUS
The earth radius of the map is 6371000.0 (so the main projection is PTV_Mercator).
Public fieldForePaneCanvas
ForePaneCanvas Name Field
Public fieldGeoCanvas
GeoCanvas Name Field
Public fieldLayers
Layers Name Field
Public fieldStatic memberLogicalSize
The size of the map in logical coordinates.
Public fieldStatic memberReferenceSize
An arbitrary value.
Public fieldStatic memberScaleProperty
Dependency property for the scale value of the map object.
Public fieldTopPaneCanvas
TopPaneCanvas Name Field
Public fieldStatic memberZoomAdjust
The zoom adjust is used to minimize rounding errors in deep zoom levels.
Top
Extension Methods
  NameDescription
Public Extension MethodCanvasToPtvMercator(UIElement, Double)Overloaded.
Conversion of a pixel distance into a Mercator distance.
(Defined by WgsExtensions.)
Public Extension MethodCanvasToPtvMercator(UIElement, Point)Overloaded.
Conversion of a pixel coordinate into a PTV-internal Mercator format.
(Defined by WgsExtensions.)
Public Extension MethodCanvasToPtvMercator(UIElement, MapRectangle)Overloaded.
Conversion of a rectangle containing pixel coordinates into a PTV-internal Mercator format.
(Defined by WgsExtensions.)
Public Extension MethodCanvasToPtvMercator(UIElement, IEnumerablePoint)Overloaded.
Conversion of multiple pixel coordinates into a PTV-internal Mercator format.
(Defined by WgsExtensions.)
Public Extension MethodCanvasToWgs
Conversion of a pixel coordinate into WGS format.
(Defined by WgsExtensions.)
Public Extension MethodFindRelativeT
Finds an object of type T for a framework element which is somewhere in the visual tree.
(Defined by MapElementExtensions.)
Public Extension MethodGetCurrentEnvelopePtvMercator
Gets the bounding box of the visible map section while the map is in animation mode.
(Defined by WgsExtensions.)
Public Extension MethodPtvMercatorToCanvas
Conversion of a PTV-internal Mercator coordinate into pixel coordinates.
(Defined by WgsExtensions.)
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Public Extension MethodWgsToCanvas
Conversion of a WGS coordinate into pixel format.
(Defined by WgsExtensions.)
Top
See Also