diff --git a/README.md b/README.md
index 91b9801..53d50a1 100644
--- a/README.md
+++ b/README.md
@@ -319,7 +319,7 @@ style server by adding a property `wms: true`. (see overlay example below)
msg.payload.command.map = {
"name":"OSMhot",
- "url":"http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",
+ "url":"https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",
"opt":{ "maxZoom":19, "attribution":"© OpenStreetMap" }
};
@@ -399,7 +399,7 @@ in a function node:
msg.payload = { command : { lat:40.74, lon:-74.175, zoom:13 } };
msg.payload.command.map = {
overlay: "New York Historical",
- url: 'http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
+ url: 'https://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
bounds: imageBounds,
opt: { opacity:1.0, attribution:"© University of Texas" }
};
diff --git a/worldmap/index.html b/worldmap/index.html
index 65ae9c5..5cdf3cc 100644
--- a/worldmap/index.html
+++ b/worldmap/index.html
@@ -349,7 +349,6 @@ function doTidyUp(l) {
var d = parseInt(Date.now()/1000);
for (var m in markers) {
if ((l && (l == markers[m].lay)) || typeof markers[m].ts != "undefined") {
- //console.log(m,markers[m].ts,markers[m]);
if ((l && (l == markers[m].lay)) || (markers[m].hasOwnProperty("ts") && (Number(markers[m].ts) < d) && (markers[m].lay !== "_drawing"))) {
//console.log("STALE :",m);
layers[markers[m].lay].removeLayer(markers[m]);
@@ -401,13 +400,15 @@ function setCluster(v) {
// Search for markers with names of ....
function doSearch() {
var value = document.getElementById('search').value;
- console.log("search for :",value);
marks = [];
marksIndex = 0;
for (var key in markers) {
if ( (~(key.toLowerCase()).indexOf(value.toLowerCase())) && (mb.contains(markers[key].getLatLng()))) {
marks.push(markers[key]);
}
+ if (markers[key].icon === value) {
+ marks.push(markers[key]);
+ }
}
moveToMarks();
if (marks.length === 0) {
@@ -1377,8 +1378,8 @@ function setMarker(data) {
words = ""+data.name+"
" + words;
marker.bindPopup(words, {closeButton:false, closeOnClick:false, keepInView:true, minWidth:250});
marker._popup.dname = data.name;
-
marker.lay = lay; // and the layer it is on
+
var rightmenuMarker = L.popup({offset:[0,-12]}).setContent(""+data.name+"
");
marker.on('contextmenu', function(e) {
if (hiderightclick !== true) {