This method retrieves the MapAPI object of the corresponding view.  The method is used as shown below.

In VC++, allocated on the heap (assuming vwAPI is an instance of ViewAPI):

  1. IMapAPI* mapAPI = new IMapAPI;

  2. mapAPI->m_lpDispatch = vwAPI.getMapAPI();

In VC++, on the stack (assuming vwAPI is an instance of ViewAPI):

  1. IMapAPI mapAPI;

  2. mapAPI.m_lpDispatch = vwAPI.getMapAPI();

In VB (assuming vwAPI is a ViewAPI object):

In the declarations:

Public mapAPI As Object


Private mapAPI As Object

Where needed:

Set mapAPI = vwAPI.getMapAPI

The client receives an instance of this object shared by other clients, if any.