Passer la navigation

[Résolu] Custom map cluster

This support ticket is created Il y a 2 années et 3 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 4 réponses, a 3 voix.

Dernière mise à jour par pierre-yvesC Il y a 2 années et 3 mois.

Assisté par: Luo Yang.

Auteur
Publications
#2579187

Hi,

I'm following the workaround explained here https://toolset.com/documentation/programmer-reference/maps/customizing-cluster-markers-with-javascript-functions/ unfortunately it doesn't work.

It's there: lien caché

#2579263

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01:00)

Hi there

When I visit the page I can see that clustering is working.

But you are trying to customise the appearance of the clusters, and it's not working?

Can you give details of what specifically you have done, i.e. share the code you used to customise the markers.

#2579265

Hello,

Yes you're right, the cluster is working, but I'm trying to customize the look, using those pictures:
lien caché
lien caché
lien caché

Thx

#2579703

Hello,

I have tried it in a fresh WP installation + the latest version of Toolset plugins + your customized icons, those custom JS codes does work, but you need to resize your custom icons to specific size, for example 50px * 50px, see below test site:

Login URL:
lien caché

Content template with custom JS codes:
lien caché

it is using an icon 50px * 50px
lien caché

See result here:
lien caché

#2579943

My issue is resolved now. Thank you very much!