Home Reference Source Repository
import InfoSignControl from './controls/InfoSignControl.js'
public class | source

InfoSignControl

Mixin Extends:

L.Control, EventMixin

A little info icon control which when clicked fires a click event.

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

Creates the HTMLElement of the control, registers listeners, and returns it.

Public Constructors

public constructor source

Params:

NameTypeAttributeDescription
options.position string
  • optional
  • default: 'bottomright'

The position of the control (one of the map corners). Possible values are 'topleft', 'topright', 'bottomleft' or 'bottomright'.

Public Methods

public onAdd(): HTMLElement source

Creates the HTMLElement of the control, registers listeners, and returns it. This method is called directly by Leaflet, use L.Control#addTo instead.

Return:

HTMLElement