@melonwd/gmaps

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @melonwd/gmaps

Weekly Downloads

11

Version

1.0.4

License

ISC

Unpacked Size

7.32 kB

Total Files

6

Last publish

Collaborators

  • archelaus
  • deadenglish
  • jcjmcclean
  • poppahorse