diff --git a/README.md b/README.md index 4f18072..2730d76 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ Optional properties for **msg.payload** include - **popped** : set to true to automatically open the popup info box, set to false to close it. - **popup** : html to fill the popup if you don't want the automatic default of the properties list. Using this overrides photourl, videourl and weblink options. - **popupOptions** : optional object to help style the popup - See Leaflet popup docs for options - eg to add a custom class - `{className:"mySpecialPopup",width:600}` + - **hideName** : set to true to omit the bold name title from the top of the popup. - **label** : displays the contents as a permanent label next to the marker, or - **tooltip** : displays the contents when you hover over the marker. (Mutually exclusive with label. Label has priority) - **tooltipOptions** : custom tooltip/label options (offset, direction, permanent, sticky, interactive, opacity, className) ) diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index fb36b67..5b092d8 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -2603,6 +2603,8 @@ function setMarker(data) { if (data.hasOwnProperty("fillColor")) { delete data.fillColor; } if (data.hasOwnProperty("radius")) { delete data.radius; } if (data.hasOwnProperty("greatcircle")) { delete data.greatcircle; } + var hideName = data.hideName; + if (data.hasOwnProperty("hideName")) { delete data.hideName; } if (!data.hasOwnProperty("clickable") || data.clickable == true) { var wopt = { autoClose:false, closeButton:true, closeOnClick:false, minWidth:200 }; @@ -2632,7 +2634,12 @@ function setMarker(data) { words += '