feat: make vertex icons bigger (and round) (#2506)

Before:
![Screenshot From 2025-02-11
13-59-40](https://github.com/user-attachments/assets/013998f1-d9f7-4129-95b8-0ab969eee018)

After:
![Screenshot From 2025-02-11
13-59-12](https://github.com/user-attachments/assets/7d279db3-3fe2-41cb-bdc4-9255f625895d)

(Size unchanged on mobile)

cf #673
This commit is contained in:
Yohan Boniface 2025-02-14 16:52:54 +01:00 committed by GitHub
commit b90328f65e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -887,4 +887,9 @@ U.Editable = L.Editable.extend({
}) })
this.stopDrawing() this.stopDrawing()
}, },
createVertexIcon: (options) =>
L.Browser.mobile && L.Browser.touch
? L.divIcon({ iconSize: new L.Point(20, 20), ...options })
: L.divIcon({ iconSize: new L.Point(12, 12), ...options }),
}) })

View file

@ -379,7 +379,10 @@ ul.photon-autocomplete {
.umap-edit-enabled .umap-toolbar a { .umap-edit-enabled .umap-toolbar a {
display: block; display: block;
} }
.leaflet-middle-icon,
.leaflet-vertex-icon {
border-radius: 50%;
}
/* ********************************* */ /* ********************************* */
/* Third party plugin override */ /* Third party plugin override */