Revision fc2887de
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/common/GeoLocationField.java | ||
---|---|---|
13 | 13 |
import org.vaadin.addon.leaflet.LCircle; |
14 | 14 |
import org.vaadin.addon.leaflet.LMap; |
15 | 15 |
import org.vaadin.addon.leaflet.LMarker; |
16 |
import org.vaadin.addon.leaflet.LOpenStreetMapLayer;
|
|
16 |
import org.vaadin.addon.leaflet.LTileLayer;
|
|
17 | 17 |
import org.vaadin.addon.leaflet.LeafletClickEvent; |
18 | 18 |
|
19 | 19 |
import com.vaadin.data.fieldgroup.BeanFieldGroup; |
... | ... | |
84 | 84 |
|
85 | 85 |
|
86 | 86 |
map = new LMap(); |
87 |
map.addBaseLayer(new LOpenStreetMapLayer(), null); |
|
87 |
// LTileLayer baseLayer = new LOpenStreetMapLayer(); |
|
88 |
LTileLayer baseLayer = new LTileLayer("https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png"); |
|
89 |
baseLayer.setAttributionString("Map data © <a href=\"https://openstreetmap.org/copyright\">OpenStreetMap</a>-contributors, SRTM | Map style: © <a href=\"http://opentopomap.org\">OpenTopoMap</a> (<a href=\"https://creativecommons.org/licenses/by-sa/3.0/\">CC-BY-SA</a>)"); |
|
90 |
map.addBaseLayer(baseLayer, null); |
|
88 | 91 |
map.setDraggingEnabled(true); |
89 | 92 |
map.setScrollWheelZoomEnabled(false); |
90 | 93 |
map.removeControl(map.getLayersControl()); |
Also available in: Unified diff
fix #7919 using opentopomap as map layer for the GeoLocationField