Fix #4114 - "black" being ignored as a color in some contexts.
[potlatch2.git] / net / systemeD / halcyon / styleparser / PointStyle.as
index 1a28a50524b5787e3878dc82c584b1c4c9848078..aac8c65c2a08fe6114aff4ed408a3e0af3a4d7e6 100644 (file)
@@ -1,11 +1,21 @@
 package net.systemeD.halcyon.styleparser {
 
-       public class PointStyle {
+       public class PointStyle extends Style {
 
-               public var icon:String;
-               public var width:uint;
-               public var height:uint;
+               public var icon_image:String;
+               public var icon_width:uint=0;
+               public var icon_height:uint;
+               public var rotation:Number;
 
+               override public function get properties():Array {
+                       return [
+                               'icon_image','icon_width','icon_height','rotation'
+                       ];
+               }
+               
+               override public function get drawn():Boolean {
+                       return (icon_image!=null);
+               }
        }
 
 }