View.Update Methods
Updates the map presentation.
Overload List
Name | Description | |
---|---|---|
Public method | Update() | Updates the map presentation in the View. |
Public method | Update(ViewUpdateKind kind) | Updates the map presentation in the View. |
Update()
Updates the map presentation in the View.Syntax
public void Update ()
Remarks
Call this method when you want to update your map. Typical use cases are when features have been modified or the geographic area of the view has changed.
This method should be called each time the presentation in a map should be updated, for instance after the geographic area displayed in the View has been changed.
If the view is connected to a MapControl, the update can be delayed. See MapControl.UpdateView for more information.
Use Update if you want to minimize this potential delay. Calling this method is the same as calling Update with the parameter Default.
Read more at Efficient Integration of Map Controls in GUI Applications to learn about when to use this method.
This is an asynchronous operation if the View is connected to a MapControl. In this case, the update may not have happened when returning from the call to the method.
This method is thread-safe if you call it on a view connected to a map control. If the view is not connected to a map control, you may still call this method from any thread, but no other application thread should access the view or its referenced components at the same time.
Update(ViewUpdateKind kind)
Updates the map presentation in the View.Syntax
public void Update (
ViewUpdateKind kind
)
Parameters
Indicates when you want the actual update to be carried out.
Remarks
This method should be called each time the presentation in a map should be updated, for instance after the geographic area displayed in the View has been changed.
If the view is connected to a MapControl, this call is usually asynchronous, and will return before the actual update update has taken place. However, the kind parameter can be used to change this behavior, see ViewUpdateKind for more information.
If the view is not connected to a map control, the update will be carried out immediately, on the calling thread. The kind parameter will be ignored in this case.
Read more at Efficient Integration of Map Controls in GUI Applications to learn about when to use this method.
This method is thread-safe if you call it on a view connected to a map control. If the view is not connected to a map control, you may still call this method from any thread, but no other application thread should access the view or its referenced components at the same time.
Platforms
Windows, Linux, Android