Sets a behavior for the map when calling setHighlight.

Has a default behavior:

  • MoveCamera = false
  • ShowInfoWindow = false
  • AnimationDuration = 0
  • AllowFloorChange = false
  • ZoomToFit = true

Export

Hierarchy

  • MPHighlightBehavior

Constructors

  • Private

    Creates an instance of MPHighlightBehavior.

    Parameters

    • allowFloorChange: boolean

      Whether the highlighting is allowed to change the floor if no results are visible on the current floor.

    • moveCamera: boolean

      Whether the highlighting should move the camera to encompass the results.

    • animationDuration: number

      How long the camera movement should be animated for, set to 0 disables animation.

    • showInfoWindow: boolean

      Whether to open the info window if a single result is returned.

    • zoomToFit: boolean

      Whether the highlighting is allowed to zoom in/out the camera.

    Returns MPHighlightBehavior

Properties

allowFloorChange: boolean

Whether the highlighting is allowed to change the floor if no results are visible on the current floor.

animationDuration: number

How long the camera movement should be animated for, set to 0 disables animation.

moveCamera: boolean

Whether the highlighting should move the camera to encompass the results.

showInfoWindow: boolean

Whether to open the info window if a single result is returned.

zoomToFit: boolean

Whether the highlighting is allowed to zoom in/out the camera.

Methods

Generated using TypeDoc