NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Is there a way to generate offline overlays maps with roads and pathways only? (Key:highway=*) I want to use it in an Android app to extend older raster maps.

Preferably in RMaps SQLite Maps (*.sqlitedb) format. (Using Alpinequest)

It doesn't need to be offline, but I have not yet found a tile server that does highway only. There is hiking.waymarkedtrails.org. but it shows waymarked trails only.

asked 05 Jul '21, 14:10

knix's gravatar image

knix
11114
accept rate: 0%

edited 06 Jul '21, 13:03


This probably is nowhere near the best solution, but OsmAnd allows raster map backgrounds with a highway overlay and is open source.

If you already have a way of generating the tiles you need, but need a way of excluding certain features, there are tools like osmosis and osmium for filtering data before you feed it into your tile generator.

permanent link

answered 07 Jul '21, 19:07

InsertUser's gravatar image

InsertUser
11.0k1369185
accept rate: 19%

I was not able to find any setting that allows OsmAnd to overlay highways only, can you please elaborate?

(09 Jul '21, 10:07) knix

In OsmAnd you need to:

  1. Enable the online maps plugin.
  2. In the Configure Map dialogue:
  3. enable an Underlay map
  4. suppress undesired features under the Hide menu.

The description for the Online maps plugin mentions that it can display tiles pre-packaged as a SQLite database and dropped in the data folder (Googled tutoiral), I'm not sure if it can be configured to point at another online provider.

(09 Jul '21, 12:59) InsertUser

Adding a new online map source now seems to be something like:

Menu / Configure Map / Map source / Add

Either enter details for a new one or "select existing". Edit and save

example URL http://map.atownsend.org.uk/hot/{0}/{1}/{2}.png

min zoom 0 max zoom 24 don't tick "elliptic mercator"

(those last settings will vary by site of course)

(09 Jul '21, 13:25) SomeoneElse ♦

I'm still not able to follow. I have no problem to add online sources or custom maps. That's not what am asking for.
I have set my own map as default map and OSM online as Underlay. Then Hiding features in the "Hide" menu does nothing.

(09 Jul '21, 14:08) knix

The original question was a way to have OSM roads over raster maps on Android. Offline rendering in OsmAnd uses OSM data and always considers itself to be the middle, so if you want OSM over your raster tiles you need to set your raster tiles to be "underlay". This will then default to suppressing area rendering but not building or highway rendering (buildings can be suppressed in the hide menu). You will have to have downloaded the OsmAnd map for the country/region you are in for offline rendering to work.

(09 Jul '21, 15:19) InsertUser

Ok, thanks I got it work, I had to disable "Show polygons" on the underlay map. Here is the complete steps

  1. Set Mapsource = Offline vector maps

  2. Overlay map = none

  3. Underlay map = Your map (Disable "Show polygons")

  4. Map style = OsmAnd

  5. Hide = Enable everything except "Overground objects"

(09 Jul '21, 17:18) knix
showing 5 of 6 show 1 more comments

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×163
×95
×42
×38
×8

question asked: 05 Jul '21, 14:10

question was seen: 2,209 times

last updated: 09 Jul '21, 17:19

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum