Skip to content

Commit

Permalink
Fix custom IMAGE marker
Browse files Browse the repository at this point in the history
fixes #149
  • Loading branch information
hannesbochmann committed Nov 17, 2023
1 parent 8c39067 commit 176514c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Classes/Controller/PluginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,12 +533,10 @@ public function getMap()
$item['tx_odsosm_marker']['type'] = 'image';
} elseif ($icon) {
if ($this->config['icon.'][$table] == 'IMAGE') {
// rendering is necessary to have image information in $GLOBALS['TSFE']->lastImageInfo
$imageDummy = $local_cObj->cObjGetSingle(
$this->config['icon.'][$table],
$this->config['icon.'][$table . '.']
$info = $this->cObj->getImgResource(
$this->config['icon.'][$table . '.']['file'] ?? '',
$this->config['icon.'][$table . '.']['file.'] ?? []
);
$info = $GLOBALS['TSFE']->lastImageInfo;
$item['tx_odsosm_marker'] = [
'icon' => $info['processedFile'],
'type' => 'image',
Expand Down

0 comments on commit 176514c

Please sign in to comment.