Note to reviewer: If you are viewing this project on GitHub, you will find that the Mapbox API key is stored in an obfuscated JavaScript file under the js
folder, called key.js.
Due to the code obfuscator's self-defense mechanisms, you will probably have a pretty hard time doing any code inspection, so if you need to do a deep dive into my JavaScript, I suggest you do the following:
- Clone the repo to your local machine.
- Delete the file
js/key.js
. - Open the file
key_replace.js
, paste your own Mapbox API key into themapbox_api
object (between the single quotes), then save the file, and rename it tokey.js
. - Launch the python localhost server with this command:
python -m SimpleHTTPServer 8000
- Manually clear your browser cache, unregister the old service worker, and do a hard refresh.
- That's it!