Unclear effect of using a transparent background theme

65 views
Skip to first unread message

Michael Bechtold

unread,
Dec 20, 2016, 4:17:18 PM12/20/16
to mapsforge-dev
Based on Emux advise I set map-background="#00000000" in the theme for Cruiser.

However, it shows an effect that is a bit difficult to understand for me: I open an normal map (here: nepal.map from Mapsforge, then apply the theme with transparency, then add another map, that only contains capital names (of different admin levels).

The highlighted capital names superseed nicely the normal map content. But (only) IF there is no city name in the map yet. If there is a name, you'll get an unreadable mix of both.

In the attached you see both. Pokhare is screwed up, Baglung is as it should be.

Any advise ?


Background and use case: in the end I am looking at a way to amend different GIVEN (!) sqlite maps (i.e. collections of png tile files) with highlighted settlement (capital) names coming from OSM. The latter I transform into .map files that only contain the places, no other OSM elements at all. So there is a LOT of white. As Mapsforge does not deliver all places to MOBAC (for reasons discussed in lenght elsewhere), and I am not in a posztion to amend Mapsforge libs myself, I am doing a workaround by "patching" in the missing names into png tiles. In most efficient way possible.
City name mixup.png

Emux

unread,
Dec 21, 2016, 3:45:37 AM12/21/16
to mapsfo...@googlegroups.com
Do you use the display=always directive in the theme so labels overlap?

The Mapsforge example I mentioned uses two render layers with two themes, each one is supposed to have different data.

If I understand, you need to use a map and overlay yourself the labels, then the map should not render its own labels?
(can do that by modifying its render theme)

--
Emux

Michael Bechtold

unread,
Dec 21, 2016, 6:28:04 AM12/21/16
to mapsforge-dev
Your example is using code. I do not code my own app, I am using Cruiser (and MOBAC).
As far as I understood, Cruiser allows for ONE theme at a time, right ?

And if a label is present in both maps, it will be shown twice.

Looking back, my question was silly ..., sorry.

Emux

unread,
Dec 21, 2016, 6:35:08 AM12/21/16
to mapsfo...@googlegroups.com
All questions are important! :)

Cruiser uses the MapDataStore mechanism where multiple maps are combined together using a common render theme.

--
Emux

Michael Bechtold

unread,
Dec 21, 2016, 12:08:12 PM12/21/16
to mapsforge-dev

MOBAC also uses MapDataStore, so the loop closes.
Reply all
Reply to author
Forward
0 new messages