Leaflet client location indicator does not show on map

Created on 22 August 2024, 26 days ago
Updated 13 September 2024, 3 days ago

Problem/Motivation

When Client Location Indicator is enabled in leaflet map features no client location indicator is shown.

Steps to reproduce

Set up a view with format Geolocation CommonMap using leaflet as the map provider and enable "Client Location Indicator" under settings/leaflet-settings/map-features - when viewing the map even once the navigator geolocation has been retrieved the indicator will not be shown.

Proposed resolution

I can see the issue in xdebug of MapFeatureFrontendBase.php as the library it attaches is "mapfeatures.leaflet_client_location_indicator" however the library set in geolocation_leaflet.libraries.yml is named "mapfeatures.client_location_indicator"

My suggestion is to just rename the library in geolocation_leaflet.libraries.yml but there may well be a better way someone more familiar with the code can see.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.0

Component

Leaflet API

Created by

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