Skip to content

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

License

niebert/openlayer_selectlocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Select a Geolocation with OpenLayers and CallBack

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.

Files of Demo

This demo consists of two file stored in /docs

  • index.html and
  • selectlocation.html. index.html calls selectlocation.html and lets the user select a geolocation. After the users clicks on the map in selectlocation.html the OpenLayers map returns the selected geolocation back to index.html. In this example index.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 file index.html.

Libraries

  • linkparam.js The LinkParameter parameter are handled with a Javascript Class docs/js/linkparam.js.
  • openlayers3.js is the OpenLayers3 version as JavaScript library. See OpenLayers for more details.

CSS

  • font-awesome Font AweSome is preinstalled for offline use of buttons and further tests.

Demo

See also

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published