Skip to content

Commit

Permalink
commons-on-osm until issue #20
Browse files Browse the repository at this point in the history
  • Loading branch information
kolossos authored Feb 9, 2017
1 parent c79295e commit 1e3b529
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions client/commons-on-osm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -237,15 +232,15 @@ function eventTooltipOn (evt) {
highlightFeature.geometry.getBounds().getCenterLonLat(),
new OpenLayers.Size(200,200),
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+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) {
Expand Down

1 comment on commit 1e3b529

@harry-wood
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes #18 and helps tackle #16 but seems unrelated to issue 20

Please sign in to comment.