Demo that creates a selector for a geolocation on a map by using OpenLayers. Geolocation Button allows to center map on current geolocation and callback url shows how to call this tool remotely and return the selected geolocation.
This demo consists of two file stored in /docs
index.html
andselectlocation.html
.index.html
callsselectlocation.html
and lets the user select a geolocation. After the users clicks on the map inselectlocation.html
the OpenLayers map returns the selected geolocation back toindex.html
. In this exampleindex.html
reads the geolocation from the LinkParameter e.g.index.html?geolocation=-12.213,65.123
and stores the geolocation in a input text element with the ID=mygeolocation in the HTML fileindex.html
.
linkparam.js
The LinkParameter parameter are handled with a Javascript Classdocs/js/linkparam.js
.openlayers3.js
is the OpenLayers3 version as JavaScript library. See OpenLayers for more details.
font-awesome
Font AweSome is preinstalled for offline use of buttons and further tests.
- Geolocation Select Demo
- Download Demo unzip file and checkout the subdirectory
/docs
. The demo is stored in/docs
because it is used at the same time as root directory for https://niebert.github.io/openlayer_selectlocation
- Open Layers - Display Markers with Popups on the Map Demo Display Markers - Source Code - ZIP
- Mapper4SDG - Demo - Source Code - ZIP
- Mixare is an Augemented Reality App, that allows to place digital content in a camera image. Demo - Source Code - ZIP