add tooltip with POI name to POI icons (#414)

This commit is contained in:
Marcus Jaschen 2021-05-14 10:31:55 +02:00 committed by GitHub
parent 5e14484302
commit 93af0656fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ BR.PoiMarkers = L.Control.extend({
content += "<button id='remove-poi-marker' class='btn btn-secondary'><i class='fa fa-trash'></i></button>";
var self = this;
var marker = L.marker(latlng, { icon: icon, draggable: true, name: name })
var marker = L.marker(latlng, { icon: icon, draggable: true, name: name, title: name })
.bindPopup(content)
.on('dragend', function () {
self.fire('update');