MMap

version 0.2

Class: MMap.Marker.Image

Simple marker who displays image that can be injury it with style

Extends:

MMap.Marker.Core

Method: constructor

Constructor of image marker

Syntax:

var myMarker = new MMap.Marker.Image(options);

Arguments:

  1. options - (mixed) Option of marker

Options:

  • map - (Map) Map object that displays marker
  • className - (string) Style applied to marker (class name of CSS)
  • title - (string) Content set to title of marker
  • image - (string) URL of image displayed in marker
  • url - (string) URL set to marker
  • position - (LatLng) Coordinates position of marker
  • zIndex - (number) The order of displaying marker
  • visible - (boolean) State of display of marker
  • active - (boolean) Active state of marker
  • onClick - (function) When the marker is clicked, it is generated.
  • onDblClick - (function) When the marker is double-clicked, it is generated.
  • onMouseOver - (function) It is generated at mouse over time of the marker.
  • onMouseOut - (function) It is generated at the mouse out of the marker.
  • onMouseUp - (function) When the mouse of the marker improves, it is generated.
  • onMouseDown - (function) When the mouse of the marker is downed, it is generated.
  • onTitleChanged - (function) When the title of the marker changes, it is generated.
  • onImageChanged - (function) When the image of the marker changes, it is generated.
  • onURLChanged - (function) When URL of the marker changes, it is generated.
  • onVisibleChanged - (function) When the marker's display changes, it is generated.
  • onZIndexChanged - (function) When the order of displaying the marker changes, it is generated.
  • onPositionChanged - (function) When the display coordinates of the marker are changed, it is generated.
  • onActive - (function) When the marker becomes active, it is generated.

Method: getTitle

The title set to the marker is acquired.

Syntax:

var title = marker.getTitle();

Returns:

(string) Title set to marker

Method: getImage

URL of the image displayed in the marker is acquired.

Syntax:

var image = marker.getImage();

Returns:

(string) URL of image displayed in marker

Method: getURL

URL set to the marker is acquired.

Syntax:

var url = marker.getURL();

Returns:

(string) URL set to marker

Method: setTitle

The title is set to the marker.

Syntax:

marker.setTitle('Marker title');

Arguments:

  1. title - (string) Title set to marker

Returns:

(object) marker object

Method: setImage

The image displayed in the marker is set.

Syntax:

marker.setImage('/images/cafe_marker.png');

Arguments:

  1. image - (string|element) Image displayed in marker

Returns:

(object) marker object

Method: setURL

URL is set to the marker.
It changes to URL set when the marker is clicked.

Syntax:

marker.setURL('http://mootools.net')

Arguments:

  1. url - (string) URL set to marker

Returns:

(object) marker object

Copyright(c) 2010 Noritaka Horio All Rights Reserved.