wahooMapsCreator
wahooMapsCreator copied to clipboard
Multiple symbols shown for one POI
Expected Behavior
For a POI, one symbol should be displayed on the screen.
Current Behavior
For some POIs, the symbol is displayed multiple times. This happens e.g. for POIs on larger buildings, and when zooming in. For POIs with the tag "type=multipolygon" the symbol will move on the entire screen like a ghost, when moving with your bike (e.g. castle of Schmalkalden, tile 135/86).
Steps to Reproduce the Issue
- Search for a POI on a large building. Maybe use cruiser application - that is easier and shows the bug too. If you create the map including historic-castle, the castle of Schmalkalden will show the bug, same as many many castles in Italy Toskana. But also many café's in "way"-items in nearly all cities will show the bug.
- zoom in -> multiple same symbols are displayed for one POI
- for castle of Schmalkalden: move the map and the "ghost castle" will be displayed.
Context
I think, the bug will happen for "add-more-pois" branch. Not sure for your main branch.
Solution
In wahoomc/resources/tag_wahoo_adjusted)/tag-wahoo-poi.xml, add for all POI lines label-position="true"
It should look like this:
<!-- ************* POIS *************** -->
<pois>
<osm-tag key="amenity" label-position="true" value="fuel" zoom-appear="14" />
<osm-tag key="amenity" label-position="true" value="cafe" zoom-appear="14" />
...
</pois>
<ways>
<osm-tag key="amenity" label-position="true" value="fuel" zoom-appear="14" />
<osm-tag key="amenity" label-position="true" value="cafe" zoom-appear="14" />
...
Now the symbol will be displayed just once per, and exactly in the middle of the POI item. (Maybe it is just needed for "ways" and not for "pois" - to be tested.)