Different cluster icons

  • lacava
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #16 by lacava
Different cluster icons was created by lacava
Hi,
i wish i could change the clusters icons m1.png with custom homemade icons.
where can i change google-maps-utility-library-v3.googlecod...erplus/images/m1.png

regards
lacava

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago - 12 years 9 months ago #21 by Dima
Replied by Dima on topic Re: Different cluster icons
Hi lacava.

Now you can change the whole icon for cluster, not separate m1 or m2.
1 - create placemark group and set your icon
2 - set this placemark group to placemarks, which would be in your cluster
3 - in placemark group details set Override Cluster Icon radiogroup to Yes
4 - go to map details, in slider Placemarks enable clusterer (Show placemarks in cluster = Yes), and say to create cluster for each placemark group (Group placemarks in cluster by placemark group property = Yes)

In this case I'll create clusterer for each placemark group and define its icon from group.

See demo Different clusters
In this case you have 2 clusters (with default icon and not)

PS for current moment I don't clear understand how override only one icon in clusterer, or define different. I saw example with different icons, but not clear understand rules for creation.

Don't forget support my developments: post review in JED , donate , help with translation ;)
Last edit: 12 years 9 months ago by Dima.
The following user(s) said Thank You: lacava

Please Log in or Create an account to join the conversation.

  • lacava
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #22 by lacava
Replied by lacava on topic Re: Different cluster icons
Thank you it works great

one different icon for each cluster and every placemark in those cluster with it's own icon,
just what i needed!

I like the idea of Placemark Group Control, but it will be intereting that the map zoom in on the cluster when user click on the name of the cluster group in the side bar. For now i don't see the show/hide option very usefull.

this component is nicely done! You ve done a good job on it.
Regards
Lacava

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #23 by Dima
Replied by Dima on topic Re: Different cluster icons
Thanks Lacava.

But I don't understand:

I like the idea of Placemark Group Control, but it will be intereting that the map zoom in on the cluster when user click on the name of the cluster group in the side bar. For now i don't see the show/hide option very usefull.


Can you explain me what you mean.
Placemark Group Control - show and hide placemarks
Clusterer works independent.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

  • lacava
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #24 by lacava
Replied by lacava on topic Re: Different cluster icons
on the screenshot i got a list of my Placemark Groups (option Placemark Group Control) on the top.
When i click on names it only show/hide the icons of those Placemark Groups.

I wish when i click on name the map could zoom in and centered on the Placemark Groups icons

sorry for my poor english,
Attachments:

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #25 by Dima
Replied by Dima on topic Re: Different cluster icons
If I understand you right, you want click on placemark group and get your group centered on map. Due to your picture.
But it is cluster. And your placemarks can be grouped in different places. For example - one cluster in north, one - in east of country. And all placemarks are from one group.

For example Placemark Group Control - you create a few groups of placemarks, and want to show or hide by clicking on that group. In initial map state you set what group is shown, what - inactive.
This is for what I've created this feature.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.208 seconds
Powered by Kunena Forum