npmap5-plugins

Maplibre Home Button

This project provides a control for MapLibre GL JS that adds a “Home” button to a map. When clicked, this button will return the map view to a pre-defined home position.

Usage

See Example

Options

The HomeButton class accepts an options object with the following properties: