- AuthorPosts
- May 12, 2023 at 16:24 #54123TapioParticipant
Hi guys,
This drove me nuts quite often – maybe you have ideas?
I can do whatever I want: Some parking spots cannot be shown below Zoom Level 16 (in Locus). While others are showing up.
This is one in question: http://brouter.de/brouter-web/#map=17/51.43405/7.80335/standard,terrarium-hillshading&pois=7.803748,51.434911,ZL16%2B&profile=hiking-mountain
According to OSM this is just key=amenity and v=parking. No other attributes.
This is the normal code.
[code] <rule e=”any” k=”amenity” v=”parking” cat=”parking” zoom-min=”14″>
<area fill=”#F3F3F3″ stroke=”#888888″ stroke-width=”0.1″ />
<rule e=”any” k=”access” v=”private|acc_no|permit|permissive” cat=”parking”>
<area src=”file:patterns/access-private.svg” symbol-percent=”30″ />
<symbol src=”file:symbols/parking_private.svg” symbol-percent=”75″ display=”always” />
</rule>
<rule e=”any” k=”access” v=”destination”>
<area src=”file:patterns/access-destination.svg” symbol-percent=”50″ />
<symbol src=”file:symbols/parking_private.svg” symbol-percent=”75″ display=”always” />
</rule>
<rule e=”any” k=”access” v=”~|yes|public”>
<rule e=”any” k=”parking” v=”*|~”>
<symbol src=”file:symbols/parking.svg” symbol-percent=”75″ display=”always” />
</rule >
</rule>
</rule>[/code]IMO stripping it down to this test code should display the parking SVG on ZL14/15, but it does not.
[code] <rule e=”any” k=”amenity” v=”parking” cat=”parking” zoom-min=”14″>
<area fill=”#F3F3F3″ stroke=”#888888″ stroke-width=”0.1″ />
<symbol src=”file:symbols/parking.svg” symbol-percent=”75″ display=”always” />
</rule>[/code]There seem to be magic barriers. The category of course is turned on in theme UI.
I’m operating on a forked Settler theme. You can try it: https://github.com/tortuosit/oam_theme_tapiola/releases/tag/Tapiola_v1.0.1
Tapiola MFV4+ theme for OAM Maps:
Releases - DL latest zip - Latest xmlMay 12, 2023 at 16:27 #54126TapioParticipantAnd an offtopic question. Anyone knowing, if use of “stroke” is of any use in an area fill?
<area fill="#F3F3F3" stroke="#888888" stroke-width="0.1" />
Tapiola MFV4+ theme for OAM Maps:
Releases - DL latest zip - Latest xmlMay 12, 2023 at 16:31 #54128TapioParticipantHere again the code from the first posting which I think should display the said parking spot from level 14 onwards.
<rule e=”any” k=”amenity” v=”parking” cat=”parking” zoom-min=”14″> <area fill=”#F3F3F3″ stroke=”#888888″ stroke-width=”0.1″ /> <symbol src=”file:symbols/parking.svg” symbol-percent=”75″ display=”always” /> </rule>
Tapiola MFV4+ theme for OAM Maps:
Releases - DL latest zip - Latest xmlMay 12, 2023 at 16:34 #54129TapioParticipantThread subject should be “Parking spots do not APPEAR in ZL<16” – cannot change it, sorry.
Tapiola MFV4+ theme for OAM Maps:
Releases - DL latest zip - Latest xmlMay 12, 2023 at 17:35 #54133TobiasKeymasterHere again the code from the first posting which I think should display the said parking spot from level 14 onwards.
<rule e=”any” k=”amenity” v=”parking” cat=”parking” zoom-min=”14″> <area fill=”#F3F3F3″ stroke=”#888888″ stroke-width=”0.1″ /> <symbol src=”file:symbols/parking.svg” symbol-percent=”75″ display=”always” /> </rule>
It should not at ZL14 – in European maps they are contained at ZL15+
It could also be that it lies on a tile border at ZL15 and can’t be rendered. You should check in cruiser with rendering advanced activated, then the label layer solves the tile border issue.Developer of Elevate mapstyle
May 12, 2023 at 17:38 #54135TobiasKeymasterAnd an offtopic question. Anyone knowing, if use of “stroke” is of any use in an area fill?
<area fill="#F3F3F3" stroke="#888888" stroke-width="0.1" />
Of course, you could just use area and stroke, fill is just one attribute. Have a look at the xsd for all possibilities:
https://github.com/mapsforge/mapsforge/blob/master/resources/renderTheme.xsdDeveloper of Elevate mapstyle
May 13, 2023 at 10:50 #54140TapioParticipantYou pointed me to the right direction. I forget about the fact, that some stuff may not be included into the map itself.
So, the roots of my headaches are:
Parking as in above example is include from ZL15+ in Nordrhein-Westfalen map, but only in ZL16+ in Germany map.
Tapiola MFV4+ theme for OAM Maps:
Releases - DL latest zip - Latest xml - AuthorPosts
- You must be logged in to reply to this topic.