Icon Class Name not showing up

Created on 15 January 2022, about 3 years ago
Updated 22 May 2023, almost 2 years ago

Problem/Motivation

When I add an "Icon Class Name", let's say my-icon-class it is no showing up as an actual class name. On searching the html code, my-icon-class shows up in the inline script data-drupal-selector="drupal-settings-json". From reading through other issues, this seems to be working for other people.

My setup:

  • leaflet 2.1.19 / geofield 1.36.0
  • search api view
  • Icon source: Icon Image Url/Path
  • Description Field: <node entity via ajax>

I would appreciate any hints in the right direction.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Closed: works as designed

Version

10.0

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany anruether Bonn

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly itamair

    Came back to this ... and checked it out in the ongoing / recommended Leaflet 10.x branch.
    It is working as expected ...

  • ๐Ÿ‡ช๐Ÿ‡ธSpain javier_rey

    Maybe I'm doing something wrong. If I try setting the โ€œIcon Class Nameโ€ field, the icon on the map does not show the class I have saved.

    I have tested this on โ€œhttps://simplytest.me/โ€, with Leaflet version 10.2.25.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly itamair

    Further checked this and still working as expected, with Leaflet version 10.2.25.

    See the attached screenshots,
    this Leaflet Demo page:
    is working with version 10.2.25
    has the "Icon Class Name" setting configured with {{title}} replacement

    and all working as expected.
    I also made sure that things also work without token / replacement result, and it works ...

    No to much to further comment here, on Leaflet version 10.2.25

Production build 0.71.5 2024