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);
|
||||
|
||||
@@ -211,6 +211,19 @@ html, body {
|
||||
}
|
||||
|
||||
|
||||
/* -----------------------------------------------------------------
|
||||
GPS Control Button
|
||||
----------------------------------------------------------------- */
|
||||
.gps-control-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
|
||||
/* -----------------------------------------------------------------
|
||||
Sidebar Overrides
|
||||
----------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user