Topic: UGUI marker grouping

Hi,

Is it possible to group custom 2d markers? I can't get group example script to work with ugui marker script.

Re: UGUI marker grouping

Hello.

It's funny, I just yesterday written this script (attached) for another customer.
I hope this will work well.

Post's attachments

Attachment icon ClusteringUIMarkers.cs 23.93 kb, 291 downloads since 2017-03-23 

Attachment icon TestClusteringUIMarkers.cs 538 b, 327 downloads since 2017-03-16 

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: UGUI marker grouping

I can't get markers visible when I zoom in. I only see groups appearing and disappearing when zooming / moving map.

Re: UGUI marker grouping

Yes, there is a typo in the script.
Fixed script is attached.

Post's attachments

Attachment icon ClusteringUIMarkers.cs 23.93 kb, 296 downloads since 2017-03-23 

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: UGUI marker grouping

Thanks, it is working now!

One more question:

I can see there is kind of 4x4 grid of groups. Is it possible to modify this?

Re: UGUI marker grouping

Unfortunately, I did not understand what you mean «4x4 grid of groups».
There markers are grouped, if they are in the same tile for same zoom level.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: UGUI marker grouping

Can I increase number of tiles somehow?

Re: UGUI marker grouping

Yes, you need to modify implementations of ClusterItem.CompareTiles.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: UGUI marker grouping

I am not sure how to do that. There is two methods for CompareTiles.

Re: UGUI marker grouping

You need to modify both methods.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.