The following members of class MapView are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(deprecated) void | setSketchEditor(Esri::ArcGISRuntime::SketchEditor *sketchEditor) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | setViewpointAnimated(const Esri::ArcGISRuntime::Viewpoint &viewpoint, float durationSeconds, Esri::ArcGISRuntime::AnimationCurve curve) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | setViewpointCenter(const Esri::ArcGISRuntime::Point ¢er) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | setViewpointCenter(const Esri::ArcGISRuntime::Point ¢er, double scale) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | setViewpointGeometry(const Esri::ArcGISRuntime::Geometry &boundingGeometry) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | setViewpointGeometry(const Esri::ArcGISRuntime::Geometry &boundingGeometry, double paddingInDIPS) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | setViewpointRotation(double angleDegrees) |
(deprecated) Esri::ArcGISRuntime::TaskWatcher | setViewpointScale(double scale) |
(deprecated) Esri::ArcGISRuntime::SketchEditor * | sketchEditor() const |
Member Function Documentation
[since Esri::ArcGISRuntime 100.12]
void MapView::setSketchEditor (Esri::ArcGISRuntime::SketchEditor *sketchEditor )
This function is deprecated. We strongly advise against using it in new code.
Sets the map view's sketch editor to sketchEditor.
This function was introduced in Esri::ArcGISRuntime 100.12.
See also sketchEditor().
Esri::ArcGISRuntime::TaskWatcher MapView::setViewpointAnimated (const Esri::ArcGISRuntime::Viewpoint &viewpoint, float durationSeconds , Esri::ArcGISRuntime::AnimationCurve curve)
This function is deprecated. We strongly advise against using it in new code.
Animates the display to the new viewpoint using the provided animation curve.
The AnimationCurve defines the animation easing function.
- viewpoint - The visible area to display in the view.
- durationSeconds - The time for the transition animation to complete, in seconds.
- curve - the type of animation curve.
Returns a TaskWatcher for the asynchronous task.
Esri::ArcGISRuntime::TaskWatcher MapView::setViewpointCenter (const Esri::ArcGISRuntime::Point ¢er)
This function is deprecated. We strongly advise against using it in new code.
Set the viewpoint asynchronously with a center point.
- center - The location at which to center the map view.
Returns a TaskWatcher for the asynchronous task.
Esri::ArcGISRuntime::TaskWatcher MapView::setViewpointCenter (const Esri::ArcGISRuntime::Point ¢er, double scale)
This function is deprecated. We strongly advise against using it in new code.
Centers the map view at the provided center point and zooms to the given scale.
- center - The location at which to center the map view.
- scale - The scale at which the map is displayed.
Returns a TaskWatcher for the asynchronous task.
Esri::ArcGISRuntime::TaskWatcher MapView::setViewpointGeometry (const Esri::ArcGISRuntime::Geometry &boundingGeometry )
This function is deprecated. We strongly advise against using it in new code.
Zooms and pans the map view to the extent of the provided geometry.
- boundingGeometry - The geometry to zoom to.
Returns a TaskWatcher for the asynchronous task.
Esri::ArcGISRuntime::TaskWatcher MapView::setViewpointGeometry (const Esri::ArcGISRuntime::Geometry &boundingGeometry , double paddingInDIPS )
This function is deprecated. We strongly advise against using it in new code.
Zooms and pans the map view to the extent of the provided geometry with additional padding.
- boundingGeometry - The geometry to zoom to.
- paddingInDIPS - The minimum amount of padding around the bounding geometry in pixels.
Returns a TaskWatcher for the asynchronous task.
Esri::ArcGISRuntime::TaskWatcher MapView::setViewpointRotation (double angleDegrees )
This function is deprecated. We strongly advise against using it in new code.
Rotates the map view to the provided angle.
The angle will be normalized between 0 and 360 degrees.
- angleDegrees - The degrees to rotate to (in counterclockwise direction).
Returns a TaskWatcher for the asynchronous task.
Esri::ArcGISRuntime::TaskWatcher MapView::setViewpointScale (double scale)
This function is deprecated. We strongly advise against using it in new code.
Zooms the map view to the provided scale around its current center point.
- scale - The scale to zoom to. For example, 50000 is a scale of 1:50,000.
Returns a TaskWatcher for the asynchronous task.
Esri::ArcGISRuntime::SketchEditor *MapView::sketchEditor () const
This function is deprecated. We strongly advise against using it in new code.
Returns a sketch editor that allows users to interactively sketch geometries on the view.
since Esri::ArcGISRuntime 200.2
SketchEditor and associated types are deprecated. Use GeometryEditor instead.
See also setSketchEditor().