@milemaker/milemaker-js
v1.0.2
Published
### Installation
Downloads
2
Readme
MikeMaker Map Display SDK
Installation
Using yarn:
yarn add @milemaker/milemaker-js
Using npm:
npm install @milemaker/milemaker-js
Initialization
Create map instance
const mapInstance: MapInstance = await createMap({
container: containerHtmlElement | elementIdString,
accessToken: "*ACCESS_TOKEN*",
});
Adding default map controls
Add such lines
mapInstance.controls.createBaseLayerControl();
mapInstance.controls.createZoomControl();
mapInstance.controls.createCurrentPositionControl();
mapInstance.controls.createTrafficLayerControl();
Documentation
For more info visit Documentation