custom GPS button styling
This commit is contained in:
@@ -167,16 +167,10 @@ var GpsControl = L.Control.extend({
|
||||
|
||||
onAdd: function () {
|
||||
var container = L.DomUtil.create('div', 'leaflet-bar leaflet-control');
|
||||
var button = L.DomUtil.create('a', '', container);
|
||||
var button = L.DomUtil.create('a', 'gps-control-button', container);
|
||||
button.href = '#';
|
||||
button.title = 'Mein Standort';
|
||||
button.innerHTML = '<i class="fa-solid fa-location-crosshairs"></i>';
|
||||
button.style.fontSize = '16px';
|
||||
button.style.display = 'flex';
|
||||
button.style.alignItems = 'center';
|
||||
button.style.justifyContent = 'center';
|
||||
button.style.width = '30px';
|
||||
button.style.height = '30px';
|
||||
|
||||
L.DomEvent.on(button, 'click', function (e) {
|
||||
L.DomEvent.preventDefault(e);
|
||||
|
||||
Reference in New Issue
Block a user