Currently we have some license issues. We are working on it.

Commit d18c675b authored by zauberstuhl's avatar zauberstuhl
Browse files

Replace Mapbox with OSM

parent b5934155
......@@ -4,9 +4,6 @@ redirectUrl: http://localhost:8080
clientID: 1234
clientSecret: 123456789
# mapbox public key
mapboxKey: 123456789
# development
debug: false
worker: true
......
......@@ -9,11 +9,10 @@
<script>
var mymap = L.map('mapid').setView([0,0], 2);
var mymapData = {{.CurrentUser.Locations.LatLngJSON}};
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', {
attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
maxZoom: 18,
id: 'mapbox.streets',
accessToken: '{{.Viper.GetString "mapboxKey"}}'
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
maxZoom: 18,
id: 'mapbox.streets'
}).addTo(mymap);
function resetMap() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment