MMap

version 0.2

Class: MMap.OverlayView

OverlayView (google.maps.OverlayView) inherited class.
An original marker and the information window can be defined by making this class a subclass.

Implements:

MMap.Events, MMap.Options

Method: constructor

Constructor of overlay view

Syntax:

var overlayView = new MMap.OverlayView(options);

Arguments:

  1. options - (mixed) Option of overlay view

Options:

  • map - (Map) Map object that displays overlay view
  • zIndex - (number) The order of displaying overlay view
  • visible - (boolean) State of display of overlay view
  • active - (boolean) Active state of overlay view

Method: _init

Processing to initialize the overlay view is defined.
Original initialization can be mounted by doing this method in override.
When the instance of the overlay view is generated, this method is executed.

Method: _setup

The structure of the overlay view is defined.
The document structure on which it undergoes plastic operation to the container element that stores the overlay view of the argument is stored.
This method is executed before the overlay view is arranged in the map.
The overlay view of an original structure can be defined by doing this method in override.

Arguments:

  1. container - (element) Container element that stores overlay view

Method: _setupListeners

The event listener of the overlay view is initialized.
This method is executed before the overlay view is arranged in the map.
The event listener of initial can be specified by doing this method in override.

Method: draw

It draws in the overlay view object.
Please make to the subclass and mount concrete processing because this method is an abstract method.

Syntax:

overlayView.draw();

Method: getVisible

The display of the overlay view is acquired.

Syntax:

overlayView.getVisible();

Returns:

(boolean) Existing state of things

Method: setVisible

The display of the overlay view is changed.

Syntax:

overlayView.setVisible(true);

Arguments:

  1. value - (boolean) If it is displayed that true is specified, and specifies false, it becomes non-display.

Returns:

(object) overlay view

Method: isAdded

Whether the overlay view is arranged in the map is examined.

Syntax:

if (overlayView.isAdded()) {
    console.log('added');
}

Returns:

(boolean) False is returned when it is not true so when arranged in the map.

Method: isVisible

The display of the overlay view is examined.

Syntax:

if (overlayView.isVisible()) {
    console.log('visible');
}

Returns:

(boolean) False is returned at true and non-display when displaying it.

Method: isActive

Active of the overlay view is examined.

Syntax:

if (overlayView.isActive()) {
    console.log('active');
}

Returns:

(boolean) False is returned true and actively non-in case of actively.

Method: setActive

Active of the overlay view is changed.
Please make to the subclass and mount concrete processing because this method is an abstract method.

Syntax:

overlayView.setActive(true);

Arguments:

  1. value - (boolean) If true is specified, it becomes active.

Copyright(c) 2010 Noritaka Horio All Rights Reserved.