How to display different marker icons in view based on list item content type

Created on 10 August 2025, 2 months ago

Problem/Motivation

I have created a views block that loads content of 2 different content types. In the marker icon settings, I am adding a token to the path, which should replace [node:content-type] with the content type of the list item. Unfortunately, no replacement occurs, and so the content type-specific icons do not load. Instead, I just see the alt text "Marker" all over the map.

Is the problem that the replacement pattern only happens once for the entire view (and the token replacement data comes from the current page)? Or is there some other idiosyncrasy related to this? I would really like to have different markers for different content types in my view.

Steps to reproduce

1. Create a content view using the format "Geolocation CommonMap"
2. In format settings, set the Marker Icon Path to a path that uses the token [node:content-type]
3. Make sure that the png files exist for the expected token replacements based on the content types in the view
4. Add a content filter for the relevant content types

There may be a few more steps than this, like making sure relevant geolocation fields are present in the Fields settings on the view.

I am not sure though whether I should expect my current setup to work, or if the settings I need should be on the geolocation field settings (in the view). Any tips?

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

3.0

Component

Geolocation Field / Backend

Created by

πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024