We used to have facility to use a custom marker icon for Google Maps in Geolocation module 3.x versions.

I see that feature is not available in current 4.0.0 release.

I noticed this commit: https://git.drupalcode.org/project/geolocation/-/commit/01889c71b6865e27... where switching to use new AdvancedMarkerElement. It tries to take the icon path from "marker_icon_path" setting but that setting is completely removed in that commit. Is that intentional or mistake?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

junaidpv created an issue. See original summary.

christianadamski’s picture

Status: Active » Needs work

When I wrote that code, there was not much documentation. Now I read you are supposed to create an additional "PinElement" and tie it to the Marker?

MergeRequests welcome to build that...

christianadamski’s picture

I did a mistake with the MR. Here is correct one:

https://git.drupalcode.org/project/geolocation/-/merge_requests/163

  • 68134da9 committed on 4.x
    fix: #3615953 Cutom marker icon
    
christianadamski’s picture

Status: Needs work » Fixed

OK, works locally, nice, merged.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.