Skip to content

Global Methods

addTo(map)

Adds a layer to the map.

  • Parameter: map
    The parameter is of type ym.provider.Layer.

  • Return: ym.provider.Path

bindPopup(content, options)

Binds a popup with specific HTML content to a click.

  • Parameter: content
    The parameter is of type String or ym.provider.Popup.

  • Return: ym.provider.Path

closePopup()

Closes the popup bound to a marker if it is open.

  • Return: ym.provider.Marker

init(group, zoom, a, b)

Marker group class for grouped icons.

  • Parameters:
  • group
  • zoom
  • a
  • b

openPopup()

Opens the popup previously bound by the bindPopup method.

  • Return: ym.provider.Marker

redraw()

Redraws the layer.

  • Return: ym.provider.Marker

removeFrom(map)

Removes the layer from another layer.

  • Parameter: map

  • Return: ym.provider.Marker

setPopupContent(content)

Sets the HTML content of the popup of this marker.

  • Parameter: content
    Parameter is of type String.

  • Return: ym.provider.Marker

setStyle(style)

Changes the appearance of a path based on the options in the Path Options object.

  • Parameter: style

  • Return: ym.provider.Path

togglePopup()

Turns the popup previously bound by the bindPopup method on and off.

  • Return: ym.provider.Marker

unbindPopup()

Removes the popup that was previously bound to the path with bindPopup.

  • Return: ym.provider.Path