beginning of vector background layers. And a whole load of other stuff too
[potlatch2.git] / net / systemeD / halcyon / vectorlayers / CustomVectorLayer.as
1 package net.systemeD.halcyon.vectorlayers {
2
3         import net.systemeD.halcyon.Map;
4         import net.systemeD.halcyon.NodeUI;
5         import net.systemeD.halcyon.WayUI;
6         import net.systemeD.halcyon.connection.Way;
7         import net.systemeD.halcyon.connection.Node;
8         import net.systemeD.halcyon.connection.Entity;
9         import net.systemeD.halcyon.styleparser.*;
10
11         // A CustomVectorLayer can be fully styled with Halcyon rules.
12
13         public class CustomVectorLayer extends VectorLayer {
14
15                 public function CustomVectorLayer(m:Map,style:String) {
16                         super(m);
17                         paint.ruleset=new RuleSet(m.MINSCALE,m.MAXSCALE,paint.redraw);
18                         paint.ruleset.loadFromCSS(style);
19                 }
20         }
21 }