Locus Map - forum

Content & Tools => Themes - Vector maps => Topic started by: settler on April 10, 2023, 20:24:40

Title: [Theme] "Settler"
Post by: settler on April 10, 2023, 20:24:40
A theme that I have been making for the second year and now use with OAM all the time.

Once upon a time it was an "active RT5" theme. Then I needed playgrounds, mountains, via ferrata, other colors, etc... and I began to change a lot for myself. Maybe someone will like the theme.

Download - https://github.com/andrey-nekrasov/oam_theme_settler/

(https://user-images.githubusercontent.com/97698777/230924045-9ed6aad8-ba17-4eac-9bb8-96bd50de3d59.jpg) (https://user-images.githubusercontent.com/97698777/230924051-e675faac-d9c2-4d95-943a-8f16f7ff3590.jpg) (https://user-images.githubusercontent.com/97698777/230924054-8e94cfae-9b97-4c17-a06b-fbf986f77b0a.jpg) (https://user-images.githubusercontent.com/97698777/230924061-23227872-827b-4290-9407-7951243e0141.png) (https://user-images.githubusercontent.com/97698777/230924065-1315e456-e911-41e3-bd8c-174958edbfc9.png) (https://user-images.githubusercontent.com/97698777/230924076-8a14224b-bf8a-4740-908e-94655e3f7b9c.png) (https://user-images.githubusercontent.com/97698777/230925458-292a8f2c-0e0d-4149-a230-a65463abb62e.png) (https://user-images.githubusercontent.com/97698777/230968332-a36c5a7d-1241-4744-834c-00032fbdb6a6.png) (https://user-images.githubusercontent.com/97698777/230968336-32c86228-6f1e-4f1f-b227-e86537cf1313.png)


ps. The description may not be very good, because google translate :)
Title: Re: Theme "Settler"
Post by: Viajero Perdido on April 10, 2023, 22:15:31
Thank you!  First impressions are, I like it.

Oddly, I can't get it to appear in the themes list on my Android 13 tablet.  This is with Locus configured to use the /media/ path, and I even tried unzipping, also tried putting a copy in the /data/ path, even through that folder is otherwise empty and unused.

But it does work on my Android 9 phone, which is set to use the /data/ path, by simply dropping the same .zip into the usual place there.

That might be a Locus issue.  I can't see anything wrong with your theme, and other zipped themes adjacent to this one are showing up in the list just fine.  I tried restarting Locus, clearing cache, nothing helped.  But on the phone, it just worked, instantly.  Both devices are running the current non-beta Locus 4, with the same current OAM V5 maps.
Title: Re: Theme "Settler"
Post by: Tapio on April 10, 2023, 22:45:24
Very good first impression. I like the many options. Display priorities seem pretty much how I like them.
Title: Re: Theme "Settler"
Post by: Andrew Heard on April 11, 2023, 00:23:32
Your theme is working nicely for me with an v5 OAM as a ZIP - thanks. The LM4 validation works. It's quite interesting you have a contours checkbox, I don't recall other themes with this. Karl Chick was asking a question about contours in themes a few days ago, maybe of interest to Karl?
Title: Re: Theme "Settler"
Post by: Tapio on April 11, 2023, 09:14:00
I know it's an issue of permanent tinkering, but can you have a look?

51.76810943,7.43945101

Lüdinghausen town name disappears at Locus ZL12, re-appears at 13.

Screenshot_20230411_091258.jpg

Just out of interest because I speak a bit RU: Nekrasov, sounds like it means "not beautiful"? 😜
Title: Re: Theme "Settler"
Post by: Tapio on April 11, 2023, 09:38:09
I see, peaks of hills have a high priority for you. Can you consider making them/their text, optional?

51.25468878, 8.05232526
On ZL14, all features are unchecked, there are those lines... we already discussed in Voluntary UK thread, many themes have those...

Title: Re: Theme "Settler"
Post by: settler on April 11, 2023, 13:51:10
Quote from: Tapio on April 11, 2023, 09:14:00Just out of interest because I speak a bit RU: Nekrasov, sounds like it means "not beautiful"? 😜

It sounds like a "famous russian writer" :)
Title: Re: Theme "Settler"
Post by: settler on April 11, 2023, 20:37:31
Quote from: Tapio on April 11, 2023, 09:14:0051.76810943,7.43945101
Lüdinghausen town name disappears at Locus ZL12, re-appears at 13.

Don't see this, LocusMap normally shows the name.
Version LocusMap 4.15.2.4 beta.

Title: Re: Theme "Settler"
Post by: Tapio on April 12, 2023, 21:26:08
Quote from: settler on April 11, 2023, 20:37:31Don't see this, LocusMap normally shows the name.
Interesting. I found it does happen with Germany full, not with Germany North.
Title: Re: Theme "Settler"
Post by: settler on April 12, 2023, 23:27:35
Quote from: Tapio on April 12, 2023, 21:26:08
Quote from: settler on April 11, 2023, 20:37:31Don't see this, LocusMap normally shows the name.
Interesting. I found it does happen with Germany full, not with Germany North.

The disappearance of certain elements at certain levels in OAM is a constant problem. But I always thought the problem was with LocusMap, not the OAM maps themselves. But maybe there are problems and errors in OAM? On a computer in the Cruiser, there are also such, but less often.
Title: Re: Theme "Settler"
Post by: michaelbechtold on April 13, 2023, 10:55:24
There are two possible root causes I am aware of:
1) if an app does not employ the separate "label layer" from the MapsForge library (Cruiser does, at least has a mode that does), any labels can randomly be cut at tile borders or even disappear. Only @Menion could tell what Locus does or not.
2) with each zoom level new labels can appear (from the underlying map file, or by the rules of the theme). Depending on the priorities of those objects, the new object may supersede the one from a zoom level lower. And if you go up one level, there is 4 times the space, and if lucky, no cometing objects popping up ...
Title: Re: Theme "Settler"
Post by: Tapio on April 13, 2023, 16:03:43
Quote from: michaelbechtold on April 13, 2023, 10:55:242) with each zoom level new labels can appear (from the underlying map file, or by the rules of the theme). Depending on the priorities of those objects, the new object may supersede the one from a zoom level lower. And if you go up one level, there is 4 times the space, and if lucky, no cometing objects popping up ...

Not really related to this theme, I think. IDK. I now tested those:

Map: OAM Germany @ ZL12
Theme: Elevate
Details ON: [Hiking], Settlement Names, Landscape features
City name Lüdinghausen is off because of that river "Osten-Stever"

Map: OAM Germany North @ ZL12
Theme: Elevate
Details ON: [Hiking], Settlement Names, Landscape features
City name Lüdinghausen stays on, because "Osten-Stever" text is not displayed

To me it seems a settlement name should have priority over a small river...
Title: Re: Theme "Settler"
Post by: michaelbechtold on April 14, 2023, 00:41:14
I think your test shows that #2 is the reason.
And I agree a settlement should "win" against a river. This is controlled by the theme (and the MapsForge library). Did you check the priorities in the theme? And there is the option to set display=always in the theme (for settlements in this case), to take objects out of the priority game.
Title: Re: Theme "Settler"
Post by: Tapio on April 14, 2023, 09:15:26
Quote from: michaelbechtold on April 14, 2023, 00:41:14Did you check the priorities in the theme?

I'm not too much into theming business, but I had a look.

https://github.com/andrey-nekrasov/oam_theme_settler/blob/main/settler.xml

<rule e="node" k="place" v="town" zoom-min="10" zoom-max="13">
<caption k="name" font-family="sans_serif" font-style="bold" font-size="14" fill="#000000" stroke="#ffffff" stroke-width="2.0" text-wrap-width="145" />
</rule>

Extending the 2nd line (caption tag) with 'display="always"' solves the problem for towns of that not big небольшой size. @settler
Title: Re: Theme "Settler"
Post by: Tapio on April 14, 2023, 15:49:03
What is "Show place=locality" about?
Title: Re: Theme "Settler"
Post by: settler on April 15, 2023, 23:42:53
Quote from: Tapio on April 14, 2023, 15:49:03What is "Show place=locality" about?

This is for debugging, some places on the map are not nicely drawn when you turn on the display of this tag. And some are not drawn :) I'll deal with it gradually later.

An interesting thing is "attention", it turns out that I practically did not draw any bridges for roads.

Railway bridges were also very badly drawn, haphazardly - either above the road, or under the roads (this is just as bad in all the mapsforge/locus map themes I have checked - elevate/voluntary/internal locus/tiramisu/...). upd. As it turned out, the error is that someone did not specify a layer for bridges, but now I know how to draw it correctly :)

I seem to have corrected all this in the new versions of the theme.
Title: Re: Theme "Settler"
Post by: Tapio on April 16, 2023, 11:04:55
@Settler, what do you think about what we discussed above... https://forum.locusmap.eu/index.php?topic=8393.msg71164#msg71164
I noticed you made no changes here.
With display=always, "Lüdinghausen" is displayed and written on top of the river name. Which is good. Without it, it's not displayed at all in OAM Germany at Zl12.

Also I noticed, your releases also carry the version number inside the zip, the folder name. This way our Presets lose their link to your theme and we have to reconfigure (or rename your zip+inside folder).
 спасибо за твои hard работу
Title: Re: Theme "Settler"
Post by: Tapio on April 16, 2023, 11:28:08
Trail markings, have you made changes? Most ones with text (eg. X1 trail) show no text, just a black box.

51.41277315,8.13683067
Screenshot_20230416_112623.jpg
Title: Re: Theme "Settler"
Post by: settler on April 17, 2023, 08:19:48
Quote from: Tapio on April 16, 2023, 11:04:55I noticed you made no changes here.
With display=always, "Lüdinghausen" is displayed and written on top of the river name. Which is good. Without it, it's not displayed at all in OAM Germany at Zl12.

Also I noticed, your releases also carry the version number inside the zip, the folder name. This way our Presets lose their link to your theme and we have to reconfigure (or rename your zip+inside folder).

Look now.
Title: Re: Theme "Settler"
Post by: Tapio on April 17, 2023, 09:04:47
Awesome, trail markings is fine now. This is now my preferred theme mostly.
BUT: I don't like the bigger cities UPPERCASE. Aesthetically. Also, increased width I guess, this may introduce more line break issues.
Title: Re: Theme "Settler"
Post by: Tapio on April 17, 2023, 09:24:23
Please consider Display="Always" on town names. Then it writes the town name on top of the poi symbols. As you know, it displays town name until ZL16. So if user wants to see the poi symbols on map, just zoom in. I think it is better than remove town name below symbols, or remove it early.
Title: Re: Theme "Settler"
Post by: Tapio on April 17, 2023, 09:53:04
There's still some trail marking texts not showing up at times.
51.36396783,7.40647768

The black ones should be A8.
Title: Re: Theme "Settler"
Post by: settler on April 17, 2023, 12:57:04
Quote from: Tapio on April 17, 2023, 09:53:04There's still some trail marking texts not showing up at times. 51.36396783,7.40647768 The black ones should be A8. .

It seems that it is absolutely impossible to make it always be displayed as it should, I will remove these icons completely.
Title: Re: Theme "Settler"
Post by: settler on April 17, 2023, 13:00:08
Quote from: Tapio on April 17, 2023, 09:24:23I think it is better than remove town name below symbols, or remove it early.

Do you want the name of the town to be always on the screen, at all levels?
Title: Re: Theme "Settler"
Post by: Tapio on April 17, 2023, 13:59:23
Quote from: settler on April 17, 2023, 13:00:08
Quote from: Tapio on April 17, 2023, 09:24:23I think it is better than remove town name below symbols, or remove it early.
Do you want the name of the town to be always on the screen, at all levels?
I think it would be good. Always on top, but I think not highest zooms, like 16+
Title: Re: Theme "Settler"
Post by: settler on April 17, 2023, 19:14:53
Quote from: Tapio on April 17, 2023, 13:59:23I think it would be good. Always on top, but I think not highest zooms, like 16+

I added, you can download the new version.
https://github.com/andrey-nekrasov/oam_theme_settler/releases
Title: Re: Theme "Settler"
Post by: Tapio on April 19, 2023, 08:54:39
I think it's sad you removed the hiking trail markers, they were "mostly" working. Can you maybe add their names close to the trails, like Voluntary does?

I noticed display="always" for towns has gone again and my Lüdinghausen problem from above happens. But not sure if you ever included it.
Title: Re: Theme "Settler"
Post by: settler on April 20, 2023, 07:02:47
Hello,

Quote from: Tapio on April 19, 2023, 08:54:39I think it's sad you removed the hiking trail markers, they were "mostly" working. Can you maybe add their names close to the trails, like Voluntary does?

"hiking trail markers" I will add, but somehow later.


Quote from: Tapio on April 19, 2023, 08:54:39I noticed display="always" for towns has gone again and my Lüdinghausen problem from above happens. But not sure if you ever included it.

Look at the last menu item: "Always show the name of small towns (12-16 levels)"
Title: Re: Theme "Settler"
Post by: Tapio on April 20, 2023, 08:51:58
Quote from: settler on April 20, 2023, 07:02:47Look at the last menu item: "Always show the name of small towns (12-16 levels)"

Thanks Andrey, good option, but that doesn't solve the problem above in https://forum.locusmap.eu/index.php?msg=71108 - which requires 'display="always"' additionally. I think, in case of town names it is a must-have, they should never be victims of priorities or paint orders.
Title: Re: Theme "Settler"
Post by: settler on April 20, 2023, 13:30:30
Quote from: Tapio on April 20, 2023, 08:51:58Thanks Andrey, good option, but that doesn't solve the problem above in https://forum.locusmap.eu/index.php?msg=71108 - which requires 'display="always"' additionally. I think, in case of town names it is a must-have, they should never be victims of priorities or paint orders.

I think we don't understand each other. You wanted display=always for place=town and I made it optional, enabled via the menu. And as far as I checked, it works. Or do you want something else?
Title: Re: Theme "Settler"
Post by: Tapio on April 20, 2023, 13:41:01
Quote from: settler on April 20, 2023, 13:30:30I think we don't understand each other. You wanted display=always for place=town and I made it optional, enabled via the menu. And as far as I checked, it works. Or do you want something else?
We're talking about the same. I checked it, and it doesn't work for https://forum.locusmap.eu/index.php?msg=71108 (it's with the full OAM Germany map) - The Town is Lüdinghausen, it's not displayed on level 12 so this cannot be "display=always".
Title: Re: Theme "Settler"
Post by: settler on April 20, 2023, 15:20:47
Quote from: Tapio on April 20, 2023, 13:41:01We're talking about the same. I checked it, and it doesn't work for https://forum.locusmap.eu/index.php?msg=71108 (it's with the full OAM Germany map) - The Town is Lüdinghausen, it's not displayed on level 12 so this cannot be "display=always".

As you can see for yourself, the option (display=always) is there, but it doesn't always work. Maybe someone knows the solution, but I do not.
Title: Re: Theme "Settler"
Post by: Tapio on April 20, 2023, 16:21:45
Quote from: settler on April 20, 2023, 15:20:47As you can see for yourself, the option (display=always) is there, but it doesn't always work. Maybe someone knows the solution, but I do not.
The rule doesn't apply at all (I tested with some ridiculous font sizes), but I don't know why.
Title: Re: Theme "Settler"
Post by: settler on April 20, 2023, 19:12:35
Quote from: Tapio on April 20, 2023, 16:21:45The rule doesn't apply at all (I tested with some ridiculous font sizes), but I don't know why.

display=always doesn't help, the name of the river removes the name of the city. Now the name of the rivers will be shown from level 13 and in a smaller font.

version 2.0.19
https://github.com/andrey-nekrasov/oam_theme_settler/releases/
Title: Re: Theme "Settler"
Post by: michaelbechtold on April 20, 2023, 20:16:24
It could be that in full Germany map this settlement is not included at all, while the Germany_<region> maps include objects already at a lower zoom level. COULD be. not sure, though.
If that is true, you can play with themes for ages without desired result ...
Just looked up the object in OSM: 29397363, place=town. So above should not apply.
Title: Re: Theme "Settler"
Post by: Tapio on April 20, 2023, 21:15:11
Quote from: settler on April 20, 2023, 19:12:35
Quote from: Tapio on April 20, 2023, 16:21:45The rule doesn't apply at all (I tested with some ridiculous font sizes), but I don't know why.
display=always doesn't help, the name of the river removes the name of the city.
I disagree, it's the whole option you added, that had no effect. I added display=always in all your recent versions to towns, and it worked. The town name got written on top of the river.
As in my attachment.
IMO it should be added to place=capital?, town, city and village.
Title: Re: Theme "Settler"
Post by: settler on April 21, 2023, 06:58:55
Quote from: Tapio on April 20, 2023, 21:15:11I disagree, it's the whole option you added, that had no effect. I added display=always in all your recent versions to towns, and it worked. The town name got written on top of the river.
As in my attachment.
IMO it should be added to place=capital?, town, city and village.

I'll take a look, but for now, I won't always use display=always. I like my variant so far. The name of the town is now shown at level 12, IMHO this is enough and I have not seen such a glitch anywhere else.
Title: Re: Theme "Settler"
Post by: Tapio on April 21, 2023, 07:29:54
Quote from: settler on April 21, 2023, 06:58:55I'll take a look, but for now, I won't always use display=always. I like my variant so far. The name of the town is now shown at level 12, IMHO this is enough and I have not seen such a glitch anywhere else.
OK. I personally don't see a problem in display=always on town names, for me it solves problems... but I can always edit myself then.
Title: Re: Theme &quot;Settler&quot;
Post by: john_percy on April 21, 2023, 09:50:30
If you have a reasonably big town or city you get a zoom level where either the town name is off screen (if you are not looking at the exact centre of the town) or the name obscures other detail you might want to see. At that zoom level, you probably know what town you are looking at anyway. So my thoughts are there should be a maximum zoom level at which the names of cities, towns, suburbs appear.

Sent from my moto g(6) plus using Tapatalk

Title: Re: Theme "Settler"
Post by: T-mo on April 21, 2023, 10:33:55
missing city-/town-names:
see below 2.0.19
same with 2.0.13

maybe it's due to priorities, or missing tags (display="always"), or a rare case pointing to sth. further

(just a sidenote reg. appearance if yours is slightly different: generally using Maps>Adv.Features>125% magnify all maps and Maps>Offline>125% Text size)
edit: added tag-description
Title: Re: Theme &quot;Settler&quot;
Post by: john_percy on April 21, 2023, 13:35:01
I think @settler may be correct about the river name taking unwanted priority. If I recollect correctly, I found pathtexts didn't  respect display priorities I had set. But I can't remember the details.

Sent from my moto g(6) plus using Tapatalk

Title: Re: Theme "Settler"
Post by: settler on April 21, 2023, 14:42:54
At this level, the name of the city is definitely not needed.
Title: Re: Theme "Settler"
Post by: Tapio on April 21, 2023, 15:23:53
But my main point is not, if city names are shown until a high zoom level. It's personal preference.
My point is, there's some uncertainty of them not showing up as in the example @ZL12 OAM Germany.

I mean I can handle it now. I want perfection here, which is possible and oh, how I hate the old days, where cities/towns sporadically showed up. Endless priority tinkering and still a local Kindergarten name was shown instead of Berlin.

Quote from: settler on April 21, 2023, 14:42:54At this level, the name of the city is definitely not needed.

I prefer it. Paper map vibes, where the town name is on top. For detailed POI analysis I may zoom in more or use database anyway.
Title: Re: Theme "Settler"
Post by: settler on April 21, 2023, 18:28:28
Quote from: Tapio on April 21, 2023, 15:23:53Endless priority tinkering and still a local Kindergarten name was shown instead of Berlin.

A good description when you make a theme :))
Title: Re: Theme "Settler"
Post by: Tapio on May 11, 2023, 14:34:43
Hi Andrey, I created a fork of it, I hope this is OK. But still I'm a bit clueless about Github though, wasn't even sure if forking is the right thing to do.

I have some different preferences. Tamed peaks a bit, gave weight to city/town/village/neighborhood names, also to parking/shelters/picnic_sites/viewpoints.

Wanted to have friendlier greens, it's a difficult affair, probably due to partial transparency and layering. What I wanted to achieve is what I now have in ZL14+. But lower ZL are different. Didn't find the issue yet.

Code: https://github.com/tortuosit/oam_theme_tapiola
Release: https://github.com/tortuosit/oam_theme_tapiola/releases/tag/Theme