0
1

I'm building a mobile app in which I'd like to show maps relative to a user's direction of motion, so that up is always forward for the user. (Sort of like what navigation apps do.) When I try this with normal tiles, the text is awkward to read. What's my best approach to fixing the text orientation?

The two obvious approaches I can find are rendering my own bitmap tiles and dynamically rendering from vector tiles. Are there other approaches I should be looking at? And what are the tradeoffs?

If it's helpful in answering the question, I'm a developer comfortable running my own servers, but the tile-server stuff looks complicated enough I'm happy to avoid that. Thanks!

asked 13 Sep, 17:42

WilliamPietri's gravatar image

WilliamPietri
113
accept rate: 0%

Non-answer: In case you haven't seen it, there is a rather long list of frameworks on the wiki.

(13 Sep, 18:53) InsertUser

Thanks! In this case I'm writing in Dart and Flutter, so none of the existing tools will do. I could build something based on MapBox's vector tiles, but I thought I'd first look at what I could do with OSM, as I'd rather go an open-source route if it's not too much extra work.

(13 Sep, 22:18) WilliamPietri

Mapbox vector tiles are almost certainly the way to go, but there are lots of open-source options for generating them from OSM data.

(15 Sep, 23:31) Richard ♦

There's likely no such thing as the "best approach" InsertUser has already pointed to the wiki list of frameworks, so I'll leave that out.

Essentially it really depends on if you believe that asking your users to download an area in advance is a good idea or not. If the answer is yes you could use mapsforge, OsmAnd or mapsme format (you would likely need to produce the necessary glue/bindings for Dart). If no then you are stuck with vector tiles either with mapbox gl, or if you are in to zombies, mapzens tangram. You don't necessarily need to have a lot of infrastructure to do that, you just need something serving pre-generated tiles if you don't mind having stale data (see for example https://openmaptiles.org/ ).

permanent link

answered 14 Sep, 12:54

SimonPoole's gravatar image

SimonPoole ♦
38.4k13286610
accept rate: 19%

edited 16 Sep, 11:24

Your answer
toggle preview

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:

×387
×39
×9
×8

question asked: 13 Sep, 17:42

question was seen: 160 times

last updated: 16 Sep, 11:24

powered by OSQA