Whilst the mapsed website and examples will run happily under your local machine, the Google Maps won't render reliably from the filesystem.
To run on your local machine we need to run via a webserver; We're using browsersync.
- Clone the repo to your local machine
- Open the folder in Visual Studio code
- Install the Preview on Web Server Visual Studio code extension
- The extension installs browsersync
- Open the browsersync settings (runs under localhost:3001/ by default)
- Nav to localhost:8080 to start
- View externally on 192.168.1.222:8080 - use for testing on mobile
- Follow the browsersync install instructions.
- In the terminal, run browser-sync start --server --files
Google now charges for API use. To avoid charges no [working] API keys are provided with the mapsed so you will need to:
- Sign-up for your own API key
- Ensure you add credentials to ensure you aren't charged from unscrupulous actors reusing your key for their own projects
- Perform a search on your mapsed repo for [YOUR-API-KEY] and add your own key
To enable debug helper class, include the mapsed.debug.js file on the page.