View with CommonMap and Google Maps provider - Layer feature "Marker Icon Adjustment" not working

Created on 28 June 2024, 5 months ago
Updated 16 September 2024, 2 months ago

Hello,

I created a view with the CommonMap format and set to use Google Maps provider. I wanted to set a custom marker icon by using the Marker Icon Adjustment feature and I got the following error:
GeolocationDataLayer.js:144 Feature GoogleMarkerIcon failed onMarkerAdded: TypeError: Cannot read properties of null (reading 'url')
The icon was not showing off and it showed the default pin icon.

I found 2 issues in geolocation/modules/geolocation_google_maps/js/LayerFeature/GoogleMarkerIcon.js:
- the setting name is marker_icon_path, not markerIconPath
- in my case currentIcon was null, not undefined, which prevented to go through the if/else expressions

🐛 Bug report
Status

Fixed

Version

4.0

Component

Javascript General / Frontend

Created by

🇫🇷France StephaneQ Paris 🇫🇷

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024