1.0.4 • Published 5 years ago

@melonwd/gmaps v1.0.4

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

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()

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago