From 2de1b0bec514b7fab1155f7233af1aeeb46b14d0 Mon Sep 17 00:00:00 2001
From: Dave Conway-Jones Any other sub-properties of Any other sub-properties of Icons of type plane, ship, car, uav or arrow will use built in SVG icons that align to the
Font Awesome (fa-icons 4.7) can also be used, as can
@@ -214,6 +215,7 @@ then by default ⌘⇧m
- ctrl-shift-m
will load the m
icon
: font awesome icon name or :emoji name:, or url of icon image.iconColor
: standard CSS color name or #rrggbb hex value.SIDC
: NATO symbology code (instead of icon).label
: permanent label next to icon.label
: permanent label next to marker, ortooltip
: hover over text for marker. (alternative to label)bulding
: OSMBuildings GeoJSON object.ttl
: time to live of an individual marker before deletion.photoUrl
: adds an image pointed at by the url to the popup box.⌘⇧m
- ctrl-shift-m
will load the m
weblink
: link to an external web page.deleted
: set to true to remove the named marker. (default false)msg.payload
will be added to the icon popup text box as extra information.msg.payload
will be added to the marker popup text box as extra information.bearing
value.⌘⇧m
- ctrl-shift-m
will load the m
All actions also include a msg._sessionid
property that indicates which client session the
diff --git a/worldmap/index.html b/worldmap/index.html
index 948989d..a26c617 100644
--- a/worldmap/index.html
+++ b/worldmap/index.html
@@ -1333,6 +1333,14 @@ function setMarker(data) {
delete marker.options.title;
delete data.label;
}
+ // otherwise check for .tooltip then use that rather than name tooltip
+ else if (data.tooltip) {
+ if (typeof data.tooltip === "string" && data.tooltip.length > 0) {
+ marker.bindLabel(data.tooltip, { direction:"left", offset:[22,-16] });
+ delete marker.options.title;
+ delete data.tooltip;
+ }
+ }
// Add any remaining properties to the info box
var llc = data.lineColor;
@@ -1357,7 +1365,7 @@ function setMarker(data) {
marker._popup.dname = data.name;
marker.lay = lay; // and the layer it is on
- var rightmenuMarker = L.popup().setContent(""+data.name+"
");
+ var rightmenuMarker = L.popup({offset:[0,-12]}).setContent(""+data.name+"
");
marker.on('contextmenu', function(e) {
if (hiderightclick !== true) {
rightmenuMarker.setLatLng(e.latlng);
diff --git a/worldmap/worldmap.appcache b/worldmap/worldmap.appcache
index dc694ec..7a9645a 100644
--- a/worldmap/worldmap.appcache
+++ b/worldmap/worldmap.appcache
@@ -1,5 +1,5 @@
CACHE MANIFEST
-# date: Mar 2nd 2019 - v1.5.29a
+# date: Mar 2nd 2019 - v1.5.29b
CACHE:
index.html