API / Controls
AttributionControl
Add the MapLibre attribution control to the map. This control shows the attribution text for the map sources.
Put it inside the MapLibre component. Use customAttribution to add your own text, and compact to show a compact control. The component uses the props only when it creates the control.
import { AttributionControl } from 'svelte-maplibre'; Examples
Props
- position
maplibregl.ControlPositionDefault:
'bottom-right' - compact
booleanDefault:
false - customAttribution
string | string[]