Compare commits

..

No commits in common. "a4c7833d87a930ac00ca1df361fef02edfad67ac" and "771704bf15515ac524724c20399a0b44ccc44531" have entirely different histories.

View File

@ -58,7 +58,7 @@ var style_outlines = {
radius: 8,
fillColor: "#ff7800",
color: "black",
opacity: 1.0,
opacity: 1,
fillOpacity: 0.5
};
@ -346,16 +346,6 @@ function search(e) {
results.appendChild(el);
}
break;
case "Polygon":
regex = new RegExp(query, 'i');
if (item.feature.properties.name.match(regex)) {
el = document.createElement("li");
zpos = layers._layers[i].layer._layers[item._leaflet_id].getCenter();
el.innerHTML = "[" + layers._layers[i].name + "] " + '<a href="#" onclick="latLng2 = L.latLng(' + Math.round(zpos.lat) + ',' + Math.round(zpos.lng) + '); jump_to(latLng2, ' + polyconf_show_cities + '); return false;">' + htmlEntities(item.feature.properties.name) + "</a>";
results.appendChild(el);
}
break;
default:
break;
}
@ -472,15 +462,15 @@ function update_outline_visibility() {
zoom = mymap.getZoom();
mymap.eachLayer( function(layer) {
if ( layer.myTag && layer.myTag === "outline") {
var fillOpacity;
var opacity;
if (zoom <= polyconf_show_cities)
fillOpacity = 0.5;
opacity = 0.5;
//else if (zoom == polyconf_show_cities + 1)
// opacity = 0.2;
else
fillOpacity = 0.0;
opacity = 0.0;
layer.setStyle({fillOpacity: fillOpacity});
layer.setStyle({fillOpacity: opacity});
}
});
}