Build
to build the dist folder, run the following command
tsc -p .
Useage
Create melonmap instance
const map = new MelonMap(document.querySelector('#map'), {
center: {
lat: '0',
lng: '0'
}
})
Via this map
you can add markers and set things.
addMarker(location: Coordiate, title: string, zIndex = 0)
setMarkerImage(markerImage: string, size: [number, number] = [78, 80], point: [number, number] = [0, 0]) {
setMapStyle(style, styleMeta) {
centerMap()