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?
Issue fork geolocation-3615953
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:
- 3615953-cutom-marker-icon
changes, plain diff MR !162
Comments
Comment #2
christianadamski commentedWhen 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...
Comment #4
christianadamski commentedI did a mistake with the MR. Here is correct one:
https://git.drupalcode.org/project/geolocation/-/merge_requests/163
Comment #6
christianadamski commentedOK, works locally, nice, merged.