You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as an optimization we (= I, culpa mea) only store ways if they have a name
to them (otherwise we would essentially need to cache all data). The houses
here have probably no name, but a house number.
The house numbers that do show up are probably points (not on ways, thats
is why they are on entrances and the like).
The fix will be to also store ways if they have a house number, or an
elevation ....
as an optimization we (= I, culpa mea) only store ways if they have a name
to them (otherwise we would essentially need to cache all data). The houses
here have probably no name, but a house number.
The house numbers that do show up are probably points (not on ways, thats
is why they are on entrances and the like).
The fix will be to also store ways if they have a house number, or an
elevation ....
Yes, nodes are always included, ways now only if they have additional information that is displayed as a label.
I don't know the reason for that, but it creates unexpected behavior.
For example for amenity=parking, it's often used as ways without any of the other information. But I want to display the symbol for parking (as in renderthemeV4) and that works well without label layer, but not with label layer activated.
Question: What triggers a street label to go into the label layer?
I general have the problem that not all street labels are shown on the map. Screenshot from Atlas:
What you see on the screenshot is only the street label "Hafenweg" (a residential), but not the labels of the streets in the north (also residentials). The label layer is activated. I have made tests with Atlas 1.2.1 and Cruiser 1.4.1. No results is convincing. Maybe I'm doing something wrong. Any ideas?
Yes, the new label layer. Tested with latest Atlas/Cruiser from today.
Symbols for ways are not shown independent of zoom level if the way has no name/addr:housenumber/ref.
That makes sense if the label layer contains only captions, but not for symbols where those values are irrelevant.
I'd avoid putting (more) work in render theme processing.
Despite our improved parsing, I still find several occasions where themes are heavy and as consequence the engine seems slow to users.
I'd prefer any method that pulls the weight away from the clients.
Note: Label layer 'as is' is already cpu intensive compared to regular rendering.
I'm aware of that, but it's still the choice of the user to use a more complex theme.
Every other solution which relies on preprocessed maps etc. has probably issues with compatibility. One of the strengths of mapsforge is that every user can adapt a theme (or create a new one), and lesser preprocessing helps this. If only symbols of certain tags that are predefined appear in the label layer, it won't work if the map creator had different items in mind than a user. And it breaks consistency: it would work without label layer, but not with.
I have just added a hook into the MapDatabase that allows defining a method that will select additional ways into the LabelLayer depending on tags. By default, only the ways that were previously included selected, but the method allows inspecting the tags.
The motivation is as follows:
-- for memory reasons we should include as few ways into the LabelLayer.
-- additional freedom for those who design apps that allow user defined render themes.
-- apps that do not allow user maps/renderthemes should not be affected in a significant way.
Be aware that the new method can be expensive as every way has to be inspected. If an app decides to include every way (by returning true regardless of tags), the app might be experiencing OOM errors.
I think this solution gives most of the freedom desired but without too much of an overhead.
I published new Atlas / Cruiser with the above hook including all ways in LabelLayer.
Let's see in action if there are any problems - leaving the issue open for now.
I'm in favor of any performance boost, though users expect to see the same elements in both layer methods, so we'll have more questions like this.
It's about what @eartrumpet mentioned above.
Ways that have not label (but we want to show a symbol on them), are not included by default in new LabelLayer, e.g. parkings with RenderThemeV4.
@ludwigb pushed a hook (which I included above), permitting to have old behavior back, i.e. parse all ways regardless of their labeling.
I tested all three variants in current Samples apk (separate labellayer using mapdatastore, threaded labellayer using mapdatastore, separate labellayer using labelstore), same map, same theme (renderthemeV4 topo with all overlays), same position. Taking the rendertime showed no significant differences between all three implementations, I tested at low and high zoom.
Regular "Map Viewer Rendertheme V4" and old "Separate LabelLayer using LabelStore" show all parkings.
New "Threaded LabelLayer using MapDataStore" shows only labeled ways, so far less parkings.
i.e. the hook is not enabled by default there.
("Separate LabelLayer using MapDataStore" is the same without threading)
Activity
devemux86 commentedon Jan 31, 2016
I can confirm the issue - it can also be reproduced with Samples.
Old

LabelLayer:New

LabelLayer:(related to #763)
ludwigb commentedon Jan 31, 2016
I think the reason is the following:
as an optimization we (= I, culpa mea) only store ways if they have a name
to them (otherwise we would essentially need to cache all data). The houses
here have probably no name, but a house number.
The house numbers that do show up are probably points (not on ways, thats
is why they are on entrances and the like).
The fix will be to also store ways if they have a house number, or an
elevation ....
Ludwig
On 31 January 2016 at 18:07, Emux [email protected] wrote:
LabelStore: ways with house number or ref are now also stored #776
applantation commentedon Jan 31, 2016
I just pushed a fix to dev.
On 31 January 2016 at 19:22, ludwigb [email protected] wrote:
devemux86 commentedon Jan 31, 2016
That did the job.
It's worth mentioning that we support:
ludwigb commentedon Jan 31, 2016
Yes, nodes are always included, ways now only if they have additional
information that is displayed as a label.
On 31 January 2016 at 20:26, Emux [email protected] wrote:
eartrumpet commentedon Feb 7, 2016
I don't know the reason for that, but it creates unexpected behavior.
For example for amenity=parking, it's often used as ways without any of the other information. But I want to display the symbol for parking (as in renderthemeV4) and that works well without label layer, but not with label layer activated.
devemux86 commentedon Feb 7, 2016
@eartrumpet you mean the new label layer?
devemux86 commentedon Feb 7, 2016
The comparison can be done in the two Samples examples:
New implementation at same area / zoom level shows far less (area) symbols e.g. parkings.
Klaus-Tockloth commentedon Feb 7, 2016
Question: What triggers a street label to go into the label layer?
I general have the problem that not all street labels are shown on the map. Screenshot from Atlas:
What you see on the screenshot is only the street label "Hafenweg" (a residential), but not the labels of the streets in the north (also residentials). The label layer is activated. I have made tests with Atlas 1.2.1 and Cruiser 1.4.1. No results is convincing. Maybe I'm doing something wrong. Any ideas?
Klaus
devemux86 commentedon Feb 7, 2016
I agree that it's not the desired behavior for road labels (with label layer or not).
See also #644 for relevant discussion.
eartrumpet commentedon Feb 7, 2016
Yes, the new label layer. Tested with latest Atlas/Cruiser from today.
Symbols for ways are not shown independent of zoom level if the way has no name/addr:housenumber/ref.
That makes sense if the label layer contains only captions, but not for symbols where those values are irrelevant.
7 remaining items
devemux86 commentedon Feb 8, 2016
I'd avoid putting (more) work in render theme processing.
Despite our improved parsing, I still find several occasions where themes are heavy and as consequence the engine seems slow to users.
I'd prefer any method that pulls the weight away from the clients.
Note: Label layer 'as is' is already cpu intensive compared to regular rendering.
eartrumpet commentedon Feb 8, 2016
I'm aware of that, but it's still the choice of the user to use a more complex theme.
Every other solution which relies on preprocessed maps etc. has probably issues with compatibility. One of the strengths of mapsforge is that every user can adapt a theme (or create a new one), and lesser preprocessing helps this. If only symbols of certain tags that are predefined appear in the label layer, it won't work if the map creator had different items in mind than a user. And it breaks consistency: it would work without label layer, but not with.
LabelLayer/MapDatabase: added hook to select additional ways into the…
ludwigb commentedon Feb 10, 2016
I have just added a hook into the MapDatabase that allows defining a method that will select additional ways into the LabelLayer depending on tags. By default, only the ways that were previously included selected, but the method allows inspecting the tags.
The motivation is as follows:
-- for memory reasons we should include as few ways into the LabelLayer.
-- additional freedom for those who design apps that allow user defined render themes.
-- apps that do not allow user maps/renderthemes should not be affected in a significant way.
Be aware that the new method can be expensive as every way has to be inspected. If an app decides to include every way (by returning true regardless of tags), the app might be experiencing OOM errors.
I think this solution gives most of the freedom desired but without too much of an overhead.
devemux86 commentedon Feb 10, 2016
Thanks @ludwigb, I'll test how it behaves.
devemux86 commentedon Feb 11, 2016
I published new Atlas / Cruiser with the above hook including all ways in
LabelLayer.Let's see in action if there are any problems - leaving the issue open for now.
I'm in favor of any performance boost, though users expect to see the same elements in both layer methods, so we'll have more questions like this.
Klaus-Tockloth commentedon Feb 11, 2016
How to test this new feature? What are the use cases?
devemux86 commentedon Feb 11, 2016
It's about what @eartrumpet mentioned above.
Ways that have not label (but we want to show a symbol on them), are not included by default in new
LabelLayer, e.g. parkings with RenderThemeV4.@ludwigb pushed a hook (which I included above), permitting to have old behavior back, i.e. parse all ways regardless of their labeling.
devemux86 commentedon Feb 11, 2016
@Klaus-Tockloth see also my above post for Samples.
eartrumpet commentedon Feb 12, 2016
Thanks @devemux86
I just did a quick test, now everything works again as expected (label layer show more labels again because of tile border issue without label layer).
Of course it's slower than without label layer, the interesting difference would be comparing this with the other method (without all ways included).
devemux86 commentedon Feb 12, 2016
The Samples example "Threaded LabelLayer using MapDataStore" includes only the labeled ways.
eartrumpet commentedon Feb 13, 2016
I tested all three variants in current Samples apk (separate labellayer using mapdatastore, threaded labellayer using mapdatastore, separate labellayer using labelstore), same map, same theme (renderthemeV4 topo with all overlays), same position. Taking the rendertime showed no significant differences between all three implementations, I tested at low and high zoom.
devemux86 commentedon Feb 13, 2016
Are you sure?
Regular "Map Viewer Rendertheme V4" and old "Separate LabelLayer using LabelStore" show all parkings.
New "Threaded LabelLayer using MapDataStore" shows only labeled ways, so far less parkings.
i.e. the hook is not enabled by default there.
("Separate LabelLayer using MapDataStore" is the same without threading)
eartrumpet commentedon Feb 13, 2016
Of course more parkings are shown with labelstore in comparison to mapdatastore, but no difference in rendertime (1st gen. Moto G LTE).