use of org.vaadin.addon.leaflet.LTileLayer in project v-leaflet by mstahv.
the class MapAntWMTSExample method getTestComponent.
@Override
public Component getTestComponent() {
LMap leafletMap = new LMap();
leafletMap.setCrs(Crs.EPSG3857);
LTileLayer tileLayer = new LTileLayer("http://wmts.mapant.fi/wmts_EPSG3857.php?z={z}&x={x}&y={y}");
tileLayer.setMaxZoom(19);
tileLayer.setMinZoom(7);
tileLayer.setAttributionString("<a href=\"http://www.maanmittauslaitos.fi/en/digituotteet/laser-scanning-data\" target=\"_blank\">Laser scanning</a> and <a href=\"http://www.maanmittauslaitos.fi/en/digituotteet/topographic-database\" target=\"_blank\">topographic</a> data provided by the <a href=\"http://www.maanmittauslaitos.fi/en\" target=\"_blank\">National Land Survey of Finland</a> under the <a href=\"https://creativecommons.org/licenses/by/4.0/legalcode\">Creative Commons license</a>.");
leafletMap.addLayer(tileLayer);
leafletMap.setCenter(61.0, 26);
leafletMap.setZoomLevel(17);
return leafletMap;
}
use of org.vaadin.addon.leaflet.LTileLayer in project v-leaflet by mstahv.
the class MapInWindowIssue19 method createTileLayer.
private AbstractLeafletLayer createTileLayer(String name, String url, boolean tms, String... servers) {
LTileLayer layer = new LTileLayer();
layer.setCaption(name);
layer.setUrl(url);
layer.setActive(false);
layer.setTms(tms);
layer.setSubDomains(servers);
return layer;
}
use of org.vaadin.addon.leaflet.LTileLayer in project v-leaflet by mstahv.
the class CenterAndZoomTest method getTestComponent.
@Override
public Component getTestComponent() {
map = new LMap();
map.setCenter(40, -105.2);
map.setZoomLevel(6);
LTileLayer tf = new LTileLayer();
tf.setUrl("https://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png");
tf.setAttributionString("Tiles Courtesy of <a href=\"https://www.thunderforest.com/\" target=\"_blank\">Thunderforest</a>" + " and OpenStreetMap contributors");
tf.setSubDomains(new String[] { "a", "b", "c" });
tf.setActive(true);
map.addBaseLayer(tf, "ThunderForest Transport");
return map;
}
Aggregations