Gmaps makes it easier to display a Google map on a page and add markers, overlays, and other elements to it.
Download from NPM.
npm install @aptuitiv/gmaps
Inspired by Leaflet.
TLDR: run this to build and watch the code
npm run watch-all
Building and watching the code involves three parts.
- The Javascript code
- The CSS code
- The local server to test the code
Run the Javascript code only with npm run watch
.
Run the CSS code only with npm run css-watch
.
Run the local server with npm run site-serve
.
Run all of them at once with npm run watch-all
. This is our recommended method of working on the code as it'll watch the Javascript, the CSS, run the local site.