API / Controls
ControlButton
Show a button with the styling of the built-in MapLibre control buttons. Use it inside a ControlGroup.
When icon is true, the content gets the maplibregl-ctrl-icon class. When center is true, the content is centered inside the button. Use onclick to handle clicks.
import { ControlButton } from 'svelte-maplibre'; Examples
Props
Source: src/lib/ControlButton.svelte