Change the default position for attribution

Place attribution in the top-left position when initializing a map.

NPM module setup


npm install --save @maptiler/sdk
import { Map, MapStyle, config } from '@maptiler/sdk';
import '@maptiler/sdk/dist/maptiler-sdk.css';

config.apiKey = 'YOUR_MAPTILER_API_KEY_HERE';
const map = new Map({
    container: 'map',
    style: MapStyle.STREETS,
    center: [-77.04, 38.907],
    zoom: 11.15,
    attributionControl: false
});
map.addControl(new maptilersdk.AttributionControl(), 'top-left');
Scale control display

Scale control

Tutorials

Learn to add and display map scale control.

How to display a minimap or overview map control to aid the map navigation

Minimap control

Tutorials

Display an overview minimap control to aid map navigation.

Was this helpful?