Author Topic: Possible to show features of a LoMap at any zoom level via theme?  (Read 935 times)

Offline freischneider

  • Expert
  • Master of Locus
  • ****
  • Posts: 978
  • Thanked: 110 times
    • View Profile
  • Device: Xiaomi Redmi Note 10 Pro, Android 11, Locus Map 4 Gold, Locus-Device-ID: aa54a2bc9
Re: Possible to show features of a LoMap at any zoom level via theme?
« Reply #15 on: November 02, 2021, 06:30:35 »
Ask in the Openandromaps forum.
 

Offline voldapet

  • Locus team
  • Master of Locus
  • *****
  • Posts: 525
  • Thanked: 21 times
    • View Profile
Re: Possible to show features of a LoMap at any zoom level via theme?
« Reply #16 on: November 02, 2021, 09:54:39 »
Quote
My understanding is that it would be possible to extract map data with every feature appearing at zoom 0, and to defer rendering at a given zoom level to the xml (theme) instructions. I

Theoretically, it's possible if you generate your own maps. By default, the generated map (LoMaps) consists of 3 inner parts - zoom levels.
see 'zoom-interval-conf' parameter at https://github.com/mapsforge/mapsforge/blob/master/docs/Getting-Started-Map-Writer.md

 The goal is to limit the number of elements in small zooms to avoid slow rendering.  The question is whether it is even a good idea to render small road lines below level < 12. I think the number of roads would be large and the map would become unreadable.
 

Offline gauvins

  • More than Newbie
  • *
  • Posts: 14
  • Thanked: 3 times
    • View Profile
Re: Possible to show features of a LoMap at any zoom level via theme?
« Reply #17 on: November 02, 2021, 15:42:24 »
[ The question is whether it is even a good idea to render small road lines below level < 12. I think the number of roads would be large and the map would become unreadable.

I understand your point. However in parts of the world, there are few roads of any size, and small scale is all but necessary. Take Australia. Even on a large computer screen, using Google Maps, figuring out options to travel from Uluru to Little Sandy Desert without a routing software is all but impossible. In Locus, after quite a bit of zooming in/out in order to locate reasonable endpoints, bRouter will come up with a suggestion that you'll have to follow more or less blindly because there is no way to visualize alternatives.

Same issue in Northern Canada (where I live) and, I assume, the stans/Mongolia,. large portions of South America and Africa...

Anyhow -- I think it would be great if the map file didn't make rendering assumptions. I'll try to find the time to generate an agnostic map and see if there is any performance issue when these instructions are located in the theme.

Or may I tempt you in generating a map set for Australia (and Canada) and I'll let you know how things went on my cheap, yet beloved, e-ink phone? :)
 

Offline michaelbechtold

  • Expert
  • Master of Locus
  • ****
  • Posts: 823
  • Thanked: 95 times
    • View Profile
Re: Possible to show features of a LoMap at any zoom level via theme?
« Reply #18 on: November 02, 2021, 20:56:11 »
For OAM Christian uses different base settings for different parts of the world to exactly address the problem you are highlighting. The elements theme is the right counterpart for those areas of the world.
Give it a try.

Looking at Canada OSM data, there is also TONS of work to do for the OSM mappers :-)
 

Offline gauvins

  • More than Newbie
  • *
  • Posts: 14
  • Thanked: 3 times
    • View Profile
Re: Possible to show features of a LoMap at any zoom level via theme?
« Reply #19 on: November 03, 2021, 14:16:15 »
Thanks for the nudge.

I've installed an OAM map. On the plus side, it looks as if features can be displayed at a smaller scale. Unfortunately the General/Element/Elevate themes do not render very well on an e-ink device and it is not clear how I can make my theme work. I've tried putting the xml file inside the _themes/Elevate folder, to no avail. I've also tried to replace the Elevate.xml with my theme and still no love.

I'll examine the Elevate and try to understand what breaks.

Will eventually update on this thread.

Thanks again
« Last Edit: November 03, 2021, 15:24:34 by gauvins »
 

Offline michaelbechtold

  • Expert
  • Master of Locus
  • ****
  • Posts: 823
  • Thanked: 95 times
    • View Profile
Re: Possible to show features of a LoMap at any zoom level via theme?
« Reply #20 on: November 03, 2021, 18:56:59 »
Maybe this one  (see attached) is a good start?
I did not try, but remembered the other thread about this subject.

https://www.openandromaps.org/oam-forums/topic/einfaches-leeres-theme-fuer-v4-karten

Good luck and cheers
Michael

 

Offline gauvins

  • More than Newbie
  • *
  • Posts: 14
  • Thanked: 3 times
    • View Profile
Re: Possible to show features of a LoMap at any zoom level via theme?
« Reply #21 on: November 05, 2021, 14:34:34 »
Well -- I think I am giving up on OAM. Yes, their themes are excellent, but they do not render well in gray scale. My version of a B&W theme didn't work out of the box" I think that it is because I am using html color names -- black instead of #000000 -- which breaks rendering (!?). A brief experiment suggested that features rendering is also limited by the zoom level, so there isn't much room for improving my use case.

BTW -- I am able to reasonably see routing options between Uluru and Little Sandy Desert, which is good  enough for me :)

I'll eventually get back to this idea when I have more free time on my hands.

Thanks again for your input
 
The following users thanked this post: michaelbechtold

Offline michaelbechtold

  • Expert
  • Master of Locus
  • ****
  • Posts: 823
  • Thanked: 95 times
    • View Profile
Re: Possible to show features of a LoMap at any zoom level via theme?
« Reply #22 on: November 05, 2021, 15:21:16 »
Enjoy the trip!