Add a title to the zone polygon

pull/3588/head
Isaac Connor 2022-08-30 19:36:07 +02:00
parent 4668534bf9
commit 85c59970a6
1 changed files with 1 additions and 1 deletions

View File

@ -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
?>