bobosch / ods_osm

TYPO3 Extension OpenStreetMap
10 stars 22 forks source link

Question - Individual marker icons? #79

Open TomQv opened 3 years ago

TomQv commented 3 years ago

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

albig commented 3 years ago

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 3 years ago

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

Valkyrion800 commented 3 years ago

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 3 years ago

Is this related to #81?

phil64 commented 3 years ago

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') {