if (stateClasses["showNodes"]) { nodetags[':selectedway']='yes'; }
if (stateClasses["showNodesHover"]) { nodetags[':hoverway']='yes'; }
if (node.id==nodeSelected) { nodetags[':selected']='yes'; }
+ if (node.numParentWays>1) { nodetags[':junction']='yes'; }
sl=map.ruleset.getStyles(node,nodetags);
if (sl.hasStyles()) {
if (!map.pois[node.id]) {
return false;
}
+ public function get numParentWays():uint {
+ var i:uint=0;
+ for (var o:Object in parents) {
+ if (o is Way) { i++; }
+ }
+ return i;
+ }
+
public function get parentRelations():Array {
var a:Array=[];
for (var o:Object in parents) {
way :selected { z-index: 2; width: eval('_width+10'); color: yellow; opacity: 0.7;}
way !:drawn { z-index:10; width: 0.5; color: gray; }
-node :selectedway { z-index: 9; icon-image: square; icon-width: 7; color: red; }
+node :selectedway { z-index: 9; icon-image: square; icon-width: 8; color: red; }
node :hoverway { z-index: 9; icon-image: square; icon-width: 7; color: blue; }
node !:drawn :poi { z-index: 2; icon-image: circle; icon-width: 4; color: green; casing-color: black; casing-width: 1; }
node :selected { z-index: 1; icon-image: square; icon-width: eval('_width+10'); color: yellow; }
-
+node :junction :selectedway { z-index: 8; icon-image: square; icon-width: 12; casing-color: black; casing-width: 1; }
+
/* Descendant selectors provide an easy way to style relations: this example means "any way
which is part of a relation whose type=route". */