[OSM-talk] barrier=gate

Ed Loach ed at loach.me.uk
Mon Nov 10 12:17:31 GMT 2008


Dave wrote:

> If everybody starts using barrier=gate ultimately happy that
> it's much
> better than highway=gate, then at some point the renderers will
> follow. 

I've just checked the Osmarender stylesheet for z17 and it contains:
		<!-- Barriers -->
		<rule e="node" k="barrier|highway" v="gate">
			<rule e="node" k="status" v="open">
				<wayMarker k="highway"
class="gate-open"/>
			</rule>
			<else>
				<rule e="node" k="status"
v="locked">
					<wayMarker k="highway"
class="gate-locked"/>
				</rule>
				<else>
					<wayMarker k="highway"
class="gate-closed"/>
				</else>
			</else>
		</rule>
So your open, locked or other gate will currently render the same
whether you use barrier=gate or highway=gate in the Osmarender layer
already (presuming all the clients have been updated since the
change was made).

Ed






More information about the talk mailing list