Author Topic: Update to mapsforge library 0.12.0  (Read 848 times)

Offline fzk

  • Apprentice of Locus
  • **
  • Posts: 249
  • Thanked: 1 times
    • View Profile
    • http://freizeitkarte-osm.de/de/index.html
Update to mapsforge library 0.12.0
« on: October 07, 2019, 11:16:24 »
Mapsforge library version 0.12.0 has significant improvements concerning street labels. See attached screenshot.

 

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 699
  • Thanked: 96 times
    • View Profile
  • Device: MotoG
Re: Update to mapsforge library 0.12.0
« Reply #1 on: October 16, 2019, 17:04:58 »
Now done in latest beta. Well done, Menion and team! Street names look really good.

Sent from my moto g(6) plus using Tapatalk

 
The following users thanked this post: michaelbechtold

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11493
  • Thanked: 332 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Update to mapsforge library 0.12.0
« Reply #2 on: October 16, 2019, 18:08:28 »
Perfect. Definitely not work on my side ... I just updated one number in config file. Glory belongs to mapsForge developers :).
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 
The following users thanked this post: michaelbechtold

Offline Andrew Heard

  • Master of Locus
  • ****
  • Posts: 697
  • Thanked: 24 times
    • View Profile
  • Device: Samsung Galaxy A5 Oreo/8, Lenovo Note 4 Nougat/7.1
Re: Update to mapsforge library 0.12.0
« Reply #3 on: October 16, 2019, 22:49:20 »
Glory belongs to mapsForge developers :).
and so say all of us :)
thanks mapsForge developers
 

Offline Viajero Perdido

  • Apprentice of Locus
  • **
  • Posts: 120
  • Thanked: 14 times
    • View Profile
  • Device: Samsung Galaxy Tab S2 (Android 7), Blackview BV6000s (Android 6), Nexus 7 (2013) for Alpha/Beta testing.
Re: Update to mapsforge library 0.12.0
« Reply #4 on: October 17, 2019, 06:13:06 »
This is indeed a big improvement - congrats to all involved!

There's still a wish-list, though.  (Isn't that always the case?)  A few items come to mind:
  • Trails often turn sharp corners, and text suffers when bent sharply.  I wonder if there's a way to avoid rendering text around sharper corners somehow...
  • Text looks to be rendered with a very thin white border (1px?) around the letters.  Barely noticeable without magnification.  I'm thinking a slightly thicker border might be more readable.
  • And...  (unrelated to the latest change).  Divided highways often render the same name twice, once for each direction, overlapping and thus barely readable.  If the code has collision-testing logic (does it?), it could check to see if the two colliding texts are identical, and if so, could render it just once at the midpoint between them.
I'm tempted to pull down the MF code and see if I can't get involved personally on this.  But in reality, that'd have to wait a while, and for all I know, the MF developers may already have a solution for some or all of this.  :)

Anyway, that's my dream list.  Thanks for reading.
 

Offline lor74cas

  • Padavan of Locus
  • ***
  • Posts: 271
  • Thanked: 17 times
    • View Profile
  • Device: Samsung A5 2017
Re: Update to mapsforge library 0.12.0
« Reply #5 on: October 17, 2019, 09:24:43 »
Graphically the names of the streets are now pleasant, but in practice they are not very so useful. The text is written in too small characters, at least on my device. Sometimes it is just illegible as it is small, I imagine myself outdoors in the hurry to find the correct information I don't think is very user friendly.
The text size is dependent on the zoom level and the width of the road. The street name should have a minimum size in order to be displayed (maybe even protruding from the road limits), the current one is too small or must be dependent on the screen resolution / size.
 

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 699
  • Thanked: 96 times
    • View Profile
  • Device: MotoG
Re: Update to mapsforge library 0.12.0
« Reply #6 on: October 17, 2019, 12:16:44 »
@lor74cas @Viajero Perdido
Some of the issues you describe relate to the theme in use rather than the underlying rendering engine. What theme(s) are you using? I'm updating my Voluntary theme to make it work better with the new Locus versions.


Sent from my moto g(6) plus using Tapatalk

 

Offline lor74cas

  • Padavan of Locus
  • ***
  • Posts: 271
  • Thanked: 17 times
    • View Profile
  • Device: Samsung A5 2017
Re: Update to mapsforge library 0.12.0
« Reply #7 on: October 17, 2019, 12:29:02 »
@lor74cas @Viajero Perdido
Some of the issues you describe relate to the theme in use rather than the underlying rendering engine. What theme(s) are you using? I'm updating my Voluntary theme to make it work better with the new Locus versions.


Sent from my moto g(6) plus using Tapatalk

openandromaps V4
theme Elevate 4

I don't know if there are updates after the 4 or minor releases
 

Offline Tobias

  • Apprentice of Locus
  • **
  • Posts: 100
  • Thanked: 13 times
    • View Profile
    • Elevate themes
Re: Update to mapsforge library 0.12.0
« Reply #8 on: October 17, 2019, 14:00:45 »
I'm planning to adjust pathtext rendering for Elevate optimized for MF 0.12+ in a future release, when major support for it is more common. MF 0.12 was just released in September, so major apps like Locus and OruxMaps have it just integrated in their beta releases.
The small street names are a workaround because of the bad rendering with the earlier versions - better a small one than none at all. But now (a bit) larger ones are possible, but the theme has to be changed.
« Last Edit: October 17, 2019, 14:12:35 by Tobias »
developer of Elevate mapstyle for OpenAndroMaps
 

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 699
  • Thanked: 96 times
    • View Profile
  • Device: MotoG
Re: Update to mapsforge library 0.12.0
« Reply #9 on: October 17, 2019, 14:04:23 »
An updated version of the Voluntary theme is available for download in this forum: https://forum.locusmap.eu/index.php?topic=2915.msg19296#msg19296
 

Offline Viajero Perdido

  • Apprentice of Locus
  • **
  • Posts: 120
  • Thanked: 14 times
    • View Profile
  • Device: Samsung Galaxy Tab S2 (Android 7), Blackview BV6000s (Android 6), Nexus 7 (2013) for Alpha/Beta testing.
Re: Update to mapsforge library 0.12.0
« Reply #10 on: October 17, 2019, 16:53:43 »
I'm using OAM/Elevate, same as @lor74cas.  I had a hunch readability was at least partly a theme issue, at least as far as text size and white borders around the letters is concerned.

BTW, I usually have my text size at 150%, which makes road names hit the borders of the road they're rendered inside/atop, black hitting black, which makes white borders around the letters a bit more desirable.

Thanks John for the very fast update on your theme!  I'll check it out.
 

Offline Tobias

  • Apprentice of Locus
  • **
  • Posts: 100
  • Thanked: 13 times
    • View Profile
    • Elevate themes
Re: Update to mapsforge library 0.12.0
« Reply #11 on: October 17, 2019, 22:47:47 »
BTW, I usually have my text size at 150%, which makes road names hit the borders of the road they're rendered inside/atop, black hitting black, which makes white borders around the letters a bit more desirable.
Could you post a screenshot where black is hitting black? There are white borders in Elevate around letters, so this shouldn't happen. It's probable that the borders aren't scaled as the text size in your 150% zoom option, but making borders thicker at 100% so that they look good at 150% isn't a solution.
developer of Elevate mapstyle for OpenAndroMaps
 

Offline Viajero Perdido

  • Apprentice of Locus
  • **
  • Posts: 120
  • Thanked: 14 times
    • View Profile
  • Device: Samsung Galaxy Tab S2 (Android 7), Blackview BV6000s (Android 6), Nexus 7 (2013) for Alpha/Beta testing.
Re: Update to mapsforge library 0.12.0
« Reply #12 on: October 17, 2019, 23:21:33 »
Here's a screenshot.  There IS actually a white border around the text, but it's very very thin.  Notice the "101" text in the lower right corner?  Even at this larger-than-tablet magnification, it's very hard to tell there's any separator.

BTW, I held the tablet - from which I took the screenshot - up against the LCD monitor on which I'm viewing this post, and the attachment preview shown below is only barely smaller than the matching image on my tablet.  So that preview is a pretty good approximation of reality, though of course at lower resolution.  This is why I need 150% or more.

Also, Locus beta 3.40.2.1 here is going nuts, drawing and redrawing the labels at two wildly different sizes.  Here I've caught a screenshot with both sizes shown at once.  Panning seems to trigger some re-rendering, and I had to pan a lot to line up things for the screenshot.

This is using a recent OAM V4 map with your latest (I think) Elevate theme.  Thanks for looking into this.,

I have to disappear shortly from the internet for a few days, sorry.
« Last Edit: October 17, 2019, 23:42:38 by Viajero Perdido »
 

Offline lor74cas

  • Padavan of Locus
  • ***
  • Posts: 271
  • Thanked: 17 times
    • View Profile
  • Device: Samsung A5 2017
Re: Update to mapsforge library 0.12.0
« Reply #13 on: October 18, 2019, 07:13:15 »
Attached two screenshots. Not all street names are so unreadable this is one of the worst example.

Inviato dal mio SM-A520F utilizzando Tapatalk

 

Offline Tobias

  • Apprentice of Locus
  • **
  • Posts: 100
  • Thanked: 13 times
    • View Profile
    • Elevate themes
Re: Update to mapsforge library 0.12.0
« Reply #14 on: October 18, 2019, 20:38:15 »
Here's a screenshot.  There IS actually a white border around the text, but it's very very thin.  Notice the "101" text in the lower right corner?  Even at this larger-than-tablet magnification, it's very hard to tell there's any separator.
Thanks, I thought you had examples without white border and there would be a bug. As said above, the border is not scaled 150%, so it is too small for letters at his size, but OK for what is was meant.

Quote
Also, Locus beta 3.40.2.1 here is going nuts, drawing and redrawing the labels at two wildly different sizes.  Here I've caught a screenshot with both sizes shown at once.  Panning seems to trigger some re-rendering, and I had to pan a lot to line up things for the screenshot.
I can't reproduce this, but the really small ones are either wrong or, like in the screenshot with "4m" scale, are too much zoomed in. Until it's optimized for MF 0.12, street names are mainly optimized for zoom 16/17, where there was a chance to see them in previous versions. As street width scales with zoom, but the text size doesn't, the street names look tiny at ZL 22 in your example, but are actually just the same size as in ZL17. I don't think there's any sense in adding lots of code for optimizing for zoom levels that don't have a practical value ;-)
Quote
I have to disappear shortly from the internet for a few days, sorry.
Good for you :-)
developer of Elevate mapstyle for OpenAndroMaps