Beispiel #1
0
 /**
  * Add start and end icon
  */
 protected function addStartAndEndIcon()
 {
     if (!$this->addIconsAndInfo) {
         return;
     }
     $this->addMarker($this->Paths[0][0][0], $this->Paths[0][0][1], $this->startIcon(), __('Start'));
     if ($this->hasTrackdataLoop()) {
         $Tooltip = sprintf(__('<strong>Total:</strong> %s'), Distance::format($this->TrackdataLoop->distance()));
         $Tooltip .= '<br>' . sprintf(__('<strong>Time:</strong> %s'), Duration::format($this->TrackdataLoop->time()));
     } else {
         $Tooltip = '';
     }
     $this->addMarkerGeohash($this->RouteLoop->geohash(), $this->endIcon(), $Tooltip);
 }