bobosch/ods_osm

Question - Individual marker icons?

Opened this issue · 5 comments

TomQv commented

Is it possible to to assign different icons to some markers?
Not all the same icon?

albig commented

For this, you can add a marker record in ods_osm.

New TYPO3 site  TYPO3 CMS 10 4 12  (6)

This marker can be selected in the fe_groups or sys_category records. So you can give a group of addresses the same marker. You even can overwrite the default marker by TypoScript (IMHO this should work).

osm - TYPO3 CMS - Introduction Package (2)

TomQv commented

Ok, I created the marker with my icon, but where is fe_groups or sys_category to select it?

i got the same problem.

if i add more than one usergroup there will be displayed just one fe_user of the last Fe_groups. Each one of three has a different marker.

grafik
grafik

albig commented

Is this related to #81?

Hi,

A little "hack" to use the image of tt_address record as marker icon:

In Typoscript

plugin.tx_odsosm_pi1 {
icon {
tt_address = FILES
tt_address {
references {
table = tt_address
uid.field = uid
fieldName = image
}
maxItems = 1
renderObj = IMAGE
renderObj {
file {
import.data = file:current:uid
treatIdAsReference = 1
}
}
}
}
}

And change the line 480 of PluginControler.php with
if ($this->config['icon.'][$table] == 'IMAGE'||$this->config['icon.'][$table] =='FILES') {