I figured this was maybe worth a top-level post, since it could be useful to others.
This is a bare-bones Hype Pro 3 wrapper (won’t work in the standard or demo versions, TTBOMK) for Google Maps and geolocation. Most of the major work is done in the ‘externals.js’ script; it’s kicked off by an onSceneLoad call in Hype.
After that the script:
- Gets user loc;
- Passes that info to various parsers;
- Builds a Google Maps object; and
- Sets up display of the map in the Hype document.
Be sure to check out the head HTML for information on using Google Maps’s API key.
ShrinkWrapper.zip (19.1 KB)