From 1e3b5293fcdf9d13c59396d4c4a1aa8e2095090c Mon Sep 17 00:00:00 2001 From: kolossos Date: Thu, 9 Feb 2017 18:53:15 +0100 Subject: [PATCH] commons-on-osm until issue #20 --- client/commons-on-osm.php | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/client/commons-on-osm.php b/client/commons-on-osm.php index 5b3353d..923eaa3 100644 --- a/client/commons-on-osm.php +++ b/client/commons-on-osm.php @@ -111,11 +111,6 @@ function init() // add the osm.org layers map.addLayer(new OpenLayers.Layer.OSM.Mapnik("OSM.org"), {visibility: false}); - map.addLayer(new OpenLayers.Layer.OSM( - 'Cycle-map', - 'http://c.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png' - )); - var bboxStrategy = new OpenLayers.Strategy.BBOX( { ratio : 1.1, resFactor: 1 @@ -237,15 +232,15 @@ function eventTooltipOn (evt) { highlightFeature.geometry.getBounds().getCenterLonLat(), new OpenLayers.Size(200,200), "     "+highlightFeature.attributes.description.replace(/<[hH][1-3][^>]*>(.*?)<\/[hH][1-3]>/,""), null, false, null ); - tooltipPopup.contentDiv.style.backgroundColor='ffffcb'; - tooltipPopup.contentDiv.style.overflow='hidden'; - tooltipPopup.contentDiv.style.padding='0px'; - tooltipPopup.contentDiv.style.margin='3px'; - tooltipPopup.border = '0px solid #DBDBD3'; - tooltipPopup.closeOnMove = true; - tooltipPopup.autoSize = true; - highlightFeature.popup = tooltipPopup; - map.addPopup(tooltipPopup); + tooltipPopup.contentDiv.style.backgroundColor='ffffff'; + tooltipPopup.contentDiv.style.overflow='hidden'; + tooltipPopup.contentDiv.style.padding='6px'; + tooltipPopup.contentDiv.style.margin='0px'; + tooltipPopup.border = '3px solid #DBDBD3'; + tooltipPopup.closeOnMove = true; + tooltipPopup.autoSize = true; + highlightFeature.popup = tooltipPopup; + map.addPopup(tooltipPopup); } function eventTooltipOff (evt) {