HERE Android SDK Developer's Guide

VenueMapView

The class VenueMapView is a member of com.here.android.mpa.venues3d .

Class Summary

public class VenueMapView

   implements com.here.android.mpa.venues3d.VenueLayerAdapter

extends com.here.android.mpa.mapping.MapView, java.lang.Object

This class adds support for 3D venues to a map view.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in VenueMapView
Constructors

VenueMapView (Context context)

Constructor that initializes the context.

VenueMapView (Context context, AttributeSet attrs)

Constructor that initializes the context and a set of attributes.

Method Summary

Table 2. Methods in VenueMapView
Methods

public void addListener (VenueListener listener)

public void addVenueZoomListener (VenueZoomListener listener)

public boolean cancelVenueSelection ()

public void deselectVenue ()

public Activity getActivity ()

public Margin getMargin ()

public PositionIndicator getPositionIndicator ()

public RoutingController getRoutingController ()

public Venue getSelectedVenue ()

public VenueController getVenueController (Venue venue)

public VenueService getVenueService ()

public void init (Activity activity, VenueServiceListener serviceListener)

Initializes the VenueMapView and VenueService and displays a map that occupies the entire view rectangle.

public boolean isFloorChangingAnimationEnabled ()

public boolean isHideIconOnSelectedSpaceEnabled ()

public boolean isOpenModeEnabled ()

public boolean isVenueEnteringAnimationEnabled ()

public boolean isVenueInViewportCallbackEnabled ()

public boolean isVenueLayerVisible ()

public boolean isVenueVisible (String id)

public void onPause ()

public void onResume ()

public void removeListener (VenueListener listener)

public void removeListener (VenueZoomListener listener)

public VenueInfo selectAsync (String venueId, String spaceId)

public boolean selectVenue (Venue venue)

public VenueInfo selectVenueAsync (String id)

public void setFloorChangingAnimation (boolean enabled)

public void setHideIconOnSelectedSpaceEnabled (boolean value)

public void setMargin (Margin value)

public void setOpenModeEnabled (boolean value)

public void setVenueEnteringAnimation (boolean enabled)

public void setVenueLayerVisible (boolean value)

public void setVenuesInViewportCallback (boolean enabled)

Class Details

This class adds support for 3D venues to a map view. It allows Venues such as shopping malls and airports to be shown on the map as interactive 3D models. In addition, it enables the display of spaces inside venues and of venue access information (such as information about entrances).

An instance of VenueMapFragment must be initialized by calling its init(Activity, VenueService.VenueServiceListener) method. To enable interactive use an instance of VenueMapLayer , add listeners for relevant events to the it as shown in the example below.


 VenueMapView m_mapView;
 Map      m_map; public void onCreate(Bundle savedInstanceState) {
   // ...other initializations...
   m_mapView = (VenueMapView) findViewById(R.id.mapcanvas);
   MapEngine.getInstance().init(this, m_listener);
   // ... other initializations...
 } private OnEngineInitListener m_listener = new
OnEngineInitListener() {
   // ...other initializations...
   m_map = new Map();
   m_mapView.setMap(m_map);
   m_mapView.init(m_activity, m_venueServiceListener);
   // ...other initializations...
 } private VenueServiceListener m_venueServiceListener = new
VenueServiceListener() {</body>
  

Constructor Details

VenueMapView (Context context)

Constructor that initializes the context.

Parameters:

  • context

VenueMapView (Context context, AttributeSet attrs)

Constructor that initializes the context and a set of attributes.

Parameters:

  • context
  • attrs

Method Details

public void addListener (VenueListener listener)

Parameters:

  • listener

public void addVenueZoomListener (VenueZoomListener listener)

Parameters:

  • listener

public boolean cancelVenueSelection ()

public void deselectVenue ()

public Activity getActivity ()

public Margin getMargin ()

public PositionIndicator getPositionIndicator ()

public RoutingController getRoutingController ()

public Venue getSelectedVenue ()

public VenueController getVenueController (Venue venue)

Parameters:

  • venue

public VenueService getVenueService ()

public void init (Activity activity, VenueServiceListener serviceListener)

Initializes the VenueMapView and VenueService and displays a map that occupies the entire view rectangle.

Note that even after initialization, most VenueMapView features cannot be used until VenueService is ready. Listen for this ready status by using onInitializationCompleted(VenueService.InitStatus).

Parameters:

  • activity
  • serviceListener

public boolean isFloorChangingAnimationEnabled ()

public boolean isHideIconOnSelectedSpaceEnabled ()

public boolean isOpenModeEnabled ()

public boolean isVenueEnteringAnimationEnabled ()

public boolean isVenueInViewportCallbackEnabled ()

public boolean isVenueLayerVisible ()

public boolean isVenueVisible (String id)

Parameters:

  • id

public void onPause ()

public void onResume ()

public void removeListener (VenueListener listener)

Parameters:

  • listener

public void removeListener (VenueZoomListener listener)

Parameters:

  • listener

public VenueInfo selectAsync (String venueId, String spaceId)

Parameters:

  • venueId
  • spaceId

public boolean selectVenue (Venue venue)

Parameters:

  • venue

public VenueInfo selectVenueAsync (String id)

Parameters:

  • id

public void setFloorChangingAnimation (boolean enabled)

Parameters:

  • enabled

public void setHideIconOnSelectedSpaceEnabled (boolean value)

Parameters:

  • value

public void setMargin (Margin value)

Parameters:

  • value

public void setOpenModeEnabled (boolean value)

Parameters:

  • value

public void setVenueEnteringAnimation (boolean enabled)

Parameters:

  • enabled

public void setVenueLayerVisible (boolean value)

Parameters:

  • value

public void setVenuesInViewportCallback (boolean enabled)

Parameters:

  • enabled

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.