Passen Sie die Schaltfläche zum Vergrößern / Verkleinern in leaflet.js an
Ich versuche, die Zoomsteuerung (+/-) anzupassen, sodass sie wie bei Google Maps auf der rechten Seite angezeigt wird (https://www.google.com/maps/)
Ich habe versucht hinzuzufügenfloat:right;
aber es hat nicht funktioniert.
Aus der CSS-Datei:
/* zoom control */
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
font: bold 18px 'Lucida Console', Monaco, monospace;
text-indent: 1px;
}
.leaflet-control-zoom-out {
font-size: 20px;
}
.leaflet-touch .leaflet-control-zoom-in {
font-size: 22px;
}
.leaflet-touch .leaflet-control-zoom-out {
font-size: 24px;
}