40 auto entry = attributes->
getNodeMap().find(nodeID);
46 style = entry->second;
54 auto entry = attributes->
getWayMap().find(wayID);
56 if (entry == attributes->
getWayMap().end()) {
60 style = entry->second;
74 style = entry->second;
virtual void matchRelation(RelId relID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
TESTABLE void overmerge(GeoObject *obj, const shared_ptr< StyleTemplate > &style)
Takes all non-"null" (meaning only properties that were explicitely set) properties from the given St...
TESTABLE const boost::unordered_map< WayId, Style * > & getWayMap() const
A RenderAttributes object contains mappings from NodeIDs and WayIDs to Style objects which define how...
TESTABLE Style * getNewStyle(NodeId id)
TESTABLE const boost::unordered_map< RelId, Style * > & getRelationMap() const
virtual void matchWay(WayId wayID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
TESTABLE const boost::unordered_map< NodeId, Style * > & getNodeMap() const
const weak_ptr< Rule > rule
virtual void matchNode(NodeId nodeID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
ApplySelector(const shared_ptr< Rule > &rule)
This file is part of alaCarte.
A Style stores the MapCSS properties for a single Node or Way, or a Relation of type multipolygon...
const shared_ptr< Geodata > geodata