Add a title to the zone polygon
parent
4668534bf9
commit
85c59970a6
|
@ -59,7 +59,7 @@ class Zone extends ZM_Object {
|
|||
}
|
||||
|
||||
public function svg_polygon() {
|
||||
return '<polygon points="'.$this->AreaCoords().'" class="'.$this->Type().'" data-mid="'.$this->MonitorId().'" data-zid="'.$this->Id().'"/>';
|
||||
return '<polygon points="'.$this->AreaCoords().'" class="'.$this->Type().'" data-mid="'.$this->MonitorId().'" data-zid="'.$this->Id().'"><title>'.$this->Name().'</title></polygon>';
|
||||
}
|
||||
} # end class Zone
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue