If you are requesting technical assistance with Twine, please specify:
Twine Version: 2.3.10
Story Format: Sugarcube
I want to show a map with the users geolocation and a set of geofences around certain coordinates, that pop up a promt to a new passage when the user steps into one of them. Does anybody have an idea on how to achieve this?
It’s important to me that:
- the geolocation of the user is shown on the map
- the points of interest are clearly visible
- entering the geofence triggers a prompt that can be accepted or ignored (depending weather or not the user wants to access the content behind that particular spot or not)
Things I’ve tried so far, that came close:
Clickable Image Map: A JPG of a map with clickable circles that open a passage. Looks nice, but doesn’t show the users position.
Display a custom google mymaps via iframe: Shows the users position when enlarged. But without real styling options and without the possibility to open a passage automatically.
This Geolocation Tutorial: The geolocation-trigger works, but it has to be manually refreshed. Also it does not show a map.
Why do I want to do this?
To make user-friendly geolocation twine games where the users position in the world is the trigger to more content.
Hope anybody can help. Thx