// get colours
if (styleList.shapeStyles[sublayer]) {
var s:ShapeStyle=styleList.shapeStyles[sublayer];
- if (s.color) { icon.graphics.beginFill(s.color);
+ if (!isNaN(s.color)) { icon.graphics.beginFill(s.color);
}
if (s.casing_width || !isNaN(s.casing_color)) {
icon.graphics.lineStyle(s.casing_width ? s.casing_width : 1,
}
// Fill
- if ((s.fill_color || s.fill_image) && entity.findParentRelationsOfType('multipolygon','inner').length==0) {
+ if ((!isNaN(s.fill_color) || s.fill_image) && entity.findParentRelationsOfType('multipolygon','inner').length==0) {
fill=new Shape(); addToLayer(fill,FILLSPRITE);
fill.graphics.moveTo(x0,y0);
if (s.fill_image) { new WayBitmapFiller(this,fill.graphics,s); }
}
override public function get drawn():Boolean {
- return (fill_image || fill_color || width || casing_width);
+ return (fill_image || !isNaN(fill_color) || width || casing_width);
}
public function applyStrokeStyle(g:Graphics):void {
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 !:drawn :hasTags { z-index: 9; icon-image: circle; icon-width: 3; color: darkslateblue; casing-color: black; casing-width: 1;}
-node :hasTags :selectedway { z-index: 9; icon-image: square; icon-width: 8; color: darkslateblue; }
+node !:drawn :hasTags { z-index: 9; icon-image: circle; icon-width: 4; color: black; }
+node :hasTags :selectedway { z-index: 9; icon-image: square; icon-width: 8; color: black; }
node !:drawn :selectedway { z-index: 9; icon-image: square; icon-width: 8; color: red; }
node :selected { z-index: 1; icon-image: square; icon-width: eval('_width+10'); color: yellow; interactive: no; }
node :junction :selectedway { z-index: 8; icon-image: square; icon-width: 12; casing-color: black; casing-width: 1; }