Skip to content

Commit

Permalink
allowing to select offline maps even without osmscout installed
Browse files Browse the repository at this point in the history
Without OSM Scout Server, if user selects offline profile, (s)he can get stuck into the case where none of the maps
are available for selected profile. To avoid this case and handle absence of OSM Scout Server via GUI, the corresponding
styles are allowed. In the absence of the server, user will get a choice to choose other profile or map provider
  • Loading branch information
rinigus committed Aug 20, 2019
1 parent e13657d commit 2f8747b
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 16 deletions.
3 changes: 1 addition & 2 deletions geocoders/osmscout.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
},
"_description": "Search based on open data sources. Supports autocomplete",
"name": "OSM Scout",
"profiles": ["mixed", "offline"],
"requires": ["harbour-osmscout-server", "osmscout-server"]
"profiles": ["mixed", "offline"]
}
3 changes: 1 addition & 2 deletions guides/osmscout.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
"_description": "Points of interest from OpenStreetMap data",
"geocoder": "osmscout",
"name": "OSM Scout",
"profiles": ["mixed", "offline"],
"requires": ["harbour-osmscout-server", "osmscout-server"]
"profiles": ["mixed", "offline"]
}
1 change: 0 additions & 1 deletion maps/osmscout_0_day.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"name": "OSM Scout Day",
"profiles": ["mixed", "offline"],
"provider": "OSM Scout",
"requires": ["harbour-osmscout-server", "osmscout-server"],
"style_url": "http://localhost:8553/v1/mbgl/style?style=osmbright",
"type": "default"
}
1 change: 0 additions & 1 deletion maps/osmscout_0_day_english.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"name": "OSM Scout Day English",
"profiles": ["mixed", "offline"],
"provider": "OSM Scout",
"requires": ["harbour-osmscout-server", "osmscout-server"],
"style_url": "http://localhost:8553/v1/mbgl/style?style=osmbright-en",
"type": "default"
}
1 change: 0 additions & 1 deletion maps/osmscout_0_night.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"name": "OSM Scout Night",
"profiles": ["mixed", "offline"],
"provider": "OSM Scout",
"requires": ["harbour-osmscout-server", "osmscout-server"],
"style_url": "http://localhost:8553/v1/mbgl/style?style=mc",
"style_gui": {
"fg": "white",
Expand Down
1 change: 0 additions & 1 deletion maps/osmscout_0_night_english.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"name": "OSM Scout Night English",
"profiles": ["mixed", "offline"],
"provider": "OSM Scout",
"requires": ["harbour-osmscout-server", "osmscout-server"],
"style_url": "http://localhost:8553/v1/mbgl/style?style=mc-en",
"style_gui": {
"fg": "white",
Expand Down
1 change: 0 additions & 1 deletion maps/osmscout_4_car_day.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"name": "OSM Scout Car Day",
"profiles": ["mixed", "offline"],
"provider": "OSM Scout",
"requires": ["harbour-osmscout-server", "osmscout-server"],
"style_url": "http://localhost:8553/v1/mbgl/style?style=osmbright-car",
"type": "preview",
"vehicle": "car"
Expand Down
1 change: 0 additions & 1 deletion maps/osmscout_4_car_day_english.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"name": "OSM Scout Car Day English",
"profiles": ["mixed", "offline"],
"provider": "OSM Scout",
"requires": ["harbour-osmscout-server", "osmscout-server"],
"style_url": "http://localhost:8553/v1/mbgl/style?style=osmbright-car-en",
"type": "preview",
"vehicle": "car"
Expand Down
1 change: 0 additions & 1 deletion maps/osmscout_4_car_night.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"name": "OSM Scout Car Night",
"profiles": ["mixed", "offline"],
"provider": "OSM Scout",
"requires": ["harbour-osmscout-server", "osmscout-server"],
"style_url": "http://localhost:8553/v1/mbgl/style?style=mc-car",
"style_gui": {
"fg": "white",
Expand Down
1 change: 0 additions & 1 deletion maps/osmscout_4_car_night_english.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"name": "OSM Scout Car Night English",
"profiles": ["mixed", "offline"],
"provider": "OSM Scout",
"requires": ["harbour-osmscout-server", "osmscout-server"],
"style_url": "http://localhost:8553/v1/mbgl/style?style=mc-car-en",
"style_gui": {
"fg": "white",
Expand Down
3 changes: 1 addition & 2 deletions routers/gpx_osmscout.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
"can_reroute": false,
"from_needed": false,
"to_needed": false,
"profiles": ["mixed", "offline", "online"],
"requires": ["harbour-osmscout-server", "osmscout-server"]
"profiles": ["mixed", "offline", "online"]
}
3 changes: 1 addition & 2 deletions routers/osmscout.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
"_modes": ["car", "bicycle", "foot"],
"name": "OSM Scout",
"offline": true,
"profiles": ["mixed", "offline"],
"requires": ["harbour-osmscout-server", "osmscout-server"]
"profiles": ["mixed", "offline"]
}

0 comments on commit 2f8747b

Please sign in to comment.