Example #1
0
 /**
  * 
  * @param $geometry object Geometry instance
  * @param $attributes array
  * @param $style array
  */
 public function __construct($geometry, $attributes = array(), $style = array())
 {
     $this->geometry = $geometry;
     $this->attributes = $attributes;
     $this->style = $style;
     $this->id = Util::createUniqueID(__CLASS__);
 }
Example #2
0
 public function __construct($class = "geometry")
 {
     $this->id = Util::createUniqueID($class);
 }