Open Live4win opened 7 months ago
I don't think that the underlying MapLibre libraries we use offer the possibility to style that button.
I see. I also thougt that I could also make a button which uses the map's controller to turn on/off the 'my location' marker on the map without having the default button already displayed, but I don't see anything exposed on the controller which lets me do that. Is it possible to do it in the first place?
edit: added 'without having the default button already displayed'
I actually don't think that that's possible. If you find a way to do that with the maplibre native/JS libraries we could expose that functionality, but AFAIK (and as far as my quick research shows) it's not possible (though that doesn't have to mean it really isn't possible)
Is there a way to customize the My Location button which appears on the map view's bottom right corner when MaplibreMap.myLocationEnabled is set to
true
? Or to create one from scratch which can interact with the map's location marker?