ESRI.ArcGIS.Mobile
OnMapChanging Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile Namespace > MapLayer Class : OnMapChanging Method

newMap
Invoked when the MapLayer is attached or detached from a Map.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub OnMapChanging( _
   ByVal newMap As IMap _
) 
C# 
protected virtual void OnMapChanging( 
   IMap newMap
)

Parameters

newMap

Remarks

The owner map is always chnaged from null to not null or not null to null. It can never change from one map to another map direclty. Also, in this method, you must clean up all your native resources if the new map is null. When a new map is attached, the Draw method will be invoked and you must implement it.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also