Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
automatically zoom to location/POI
Michael Peter Christen509eba248493
diff --git a/htroot/yacysearch_location.html b/htroot/yacysearch_location.htmlindex 44aa1b26c..28517dab8 100644--- a/htroot/yacysearch_location.html+++ b/htroot/yacysearch_location.html@@ -67,13 +67,14 @@window.setInterval("refresh()", 1000);}- function zoomChanged () {+ function zoomChanged() {shallZoom = false; // no automatic zoom if user hs zoomedrefreshsearch();}// called if a search is submittedfunction search() {+ shallZoom = true;refreshsearch();}@@ -128,7 +129,8 @@// check if any of the markers is visible on the screen.// this is only necessary if shallZoom = false since this would set shallZoom = truevar bounds = searchLayer_md1.getDataExtent();- if (bounds == null) searchLayer_co1.getDataExtent();+ if (bounds == null) bounds = searchLayer_co1.getDataExtent();+/*if (!shallZoom) {// check all markers