#14 show description on map in tooltip on area
This commit is contained in:
parent
7be6245ed3
commit
c4dbea12b3
@ -5,6 +5,7 @@
|
||||
*
|
||||
### Bugfixes
|
||||
* Implement #13 fixing issue with port when using proxy
|
||||
* Implement #14 show description on map in tooltip on area
|
||||
### Changes
|
||||
*
|
||||
|
||||
|
@ -69,7 +69,11 @@ function GetGeoLayer() {
|
||||
},
|
||||
onEachFeature: function (feature, layer) {
|
||||
if (feature.geometry.type === "Polygon" || (feature.geometry.type === "Point" && feature.properties.hasOwnProperty("icon"))) {
|
||||
layer.bindPopup(feature.properties.name);
|
||||
var text = "<b>"+feature.properties.name+"</b>";
|
||||
if (feature.properties.hasOwnProperty("description")) {
|
||||
text = text + "<br>" + feature.properties.description;
|
||||
}
|
||||
layer.bindPopup(text);
|
||||
}
|
||||
},
|
||||
pointToLayer: function (geoJsonPoint, latlng) {
|
||||
|
Loading…
Reference in New Issue
Block a user