Tell us what you are trying to do?
We are trying to create an interactive map that represents a collection of locations. Ideally, these locations will be differentiated into three groups, with the map markers showing three different colors, for three different categories.
Is there any documentation that you are following?
No, I could not find any.
Is there a similar example that we can see?
Yes. We built a map with this capability on an older site, using an older version of Toolset. hidden link
On the above link, you can see exactly what we are going for; three different colors to indicate three different kinds of locations.
What is the link to your site? hidden link
Additional comment:
I am wondering if this is even possible with the new Toolset block settings. I cannot find any way to do it. On the old site, where we have pulled this off, we used a complex of shortcodes and uploaded files to make it work. But again, the newer Map Block does not seem to allow for this. Do I need to be looking at the View block instead, to pull this off? Or has this capability just not been included? To clarify, I am aware of being able to add a custom image to the Map Block. What is not apparent, is the ability to add three different map markers, and to use all three at the same time.
It is not readily possible to mix different marker styles in the same map with the new blocks interface in the same way that it was with the legacy versions (which is still a viable option).
To recap, in the legacy version, the View was responsible for outputting the map (outside of the loop) as we as the markers (within the loop), each via shortcodes. As such, within the loop output you would add the map marker shortcode several times, each with a different style, and each wrapped within a conditional shortcode that tested for the category, such that a particular marker style was output for a given category.
The blocks interface works differently. The map is added independently of the View, but can use the View to generate the markers.
There doesn't exist a possibility to use conditionals in the same way as the legacy editor, all of the markers on the map will have the same style.
Except!
You could add 3 different markers to the map block, each with their own style, and then select 3 different Views (from the same page) as the source for those markers. So you could have a View which returns posts of one category, another View which returns posts of a second category, and a third View which returns posts of the remaining category.