Call before starting to modify the map
document.
[Visual Basic .NET] |
---|
Public Function StartMapEditing( _
ByVal Option As AgESTKesriCallOptions _
) As Boolean
|
[C#] |
---|
public bool StartMapEditing(
|
[Managed C++] |
---|
public: bool StartMapEditing(
|
[Java] |
---|
public bool startMapEditing(
|
[Unmanaged C++] |
---|
public: HRESULT StartMapEditing(
|
- Option
-
Member Value Description eEsri3dBlocking 1 The call to the method will block until the map is closed. Use for in-process calls. eEsri3dNonBlocking 2 The call to the method will not block. Use for out-of-process calls. Loop until the call succeeds.
Returns true if map can now be edited.
You must call this method before making changes to the map document currently opened in the renderer. This puts the GIS thread on hold, making sure that the map document information is not being accessed by 2 threads at the same time.
When StopMapEditing is called, the renderer re-generates its caches, ensuring that the latest map information is being used.
How to call this function depends on how the library is being used:
- If the library is being used embedded in a custom application, call the method passing the eEsri3dBlocking option. The function call will then block until the map document is ready to be edited, and then return.
- If the library is being used to automate STK and is called from another process, it is recommended to use the eEsri3dNonBlocking option. The function will then return immediately, and must be called in a loop until it returns true.
In process map
modification.
[C#] | Copy Code | |
---|---|---|
|