Skip to content

Commit

Permalink
Set standanrd mapstyle to OSM
Browse files Browse the repository at this point in the history
mapsurfer is currently unstable
  • Loading branch information
TheGreatRefrigerator committed Nov 29, 2017
1 parent dcf080e commit 5d51707
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/ors-map/ors-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ angular.module('orsApp')
});
// set default map style from cookies
$scope.mapStyleId = orsCookiesFactory.getMapOptions() ? orsCookiesFactory.getMapOptions()
.msi : 0;
.msi : 3;
// override cookies if mapsurfer in cookies
if ($scope.mapStyleId == 0) {$scope.mapStyleId = 3;}
// mapOptionsInitSubject is a replay subject and only subscribes once
let mapInitSubject = orsSettingsFactory.mapOptionsInitSubject.subscribe(settings => {
console.error('ONCE', JSON.stringify(settings));
Expand Down

0 comments on commit 5d51707

Please sign in to comment.