Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.59 KB

Local-Development.md

File metadata and controls

36 lines (22 loc) · 1.59 KB

Local Development

Running mapsed repo

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.

Visual Studio Code browsersync extension

CLI

  • Follow the browsersync install instructions.
  • In the terminal, run browser-sync start --server --files

Google Maps API keys

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

Debugging

To enable debug helper class, include the mapsed.debug.js file on the page.