Search in sources :

Example 1 with Option

use of org.opennms.features.vaadin.nodemaps.internal.gwt.client.Option in project opennms by OpenNMS.

the class NodeMapWidget method addTileLayer.

private void addTileLayer(String tileUrl, List<Option> optionsList) {
    LOG.info("NodeMapWidget.setTileLayer(String, Option...) start");
    LOG.info("NodeMapWidget.setTileLayer tileServerUrl: " + tileUrl + "," + optionsList);
    final Options tileOptions = new Options();
    for (Option eachOption : optionsList) {
        tileOptions.setProperty(eachOption.getKey(), eachOption.getValue());
    }
    m_layer = new TileLayer(tileUrl, tileOptions);
    m_map.addLayer(m_layer, true);
    LOG.info("NodeMapWidget.setTileLayer(String, Option...) end");
}
Also used : MapOptions(org.discotools.gwt.leaflet.client.map.MapOptions) Options(org.discotools.gwt.leaflet.client.Options) ZoomOptions(org.discotools.gwt.leaflet.client.controls.zoom.ZoomOptions) TileLayer(org.discotools.gwt.leaflet.client.layers.raster.TileLayer) Option(org.opennms.features.vaadin.nodemaps.internal.gwt.client.Option)

Aggregations

Options (org.discotools.gwt.leaflet.client.Options)1 ZoomOptions (org.discotools.gwt.leaflet.client.controls.zoom.ZoomOptions)1 TileLayer (org.discotools.gwt.leaflet.client.layers.raster.TileLayer)1 MapOptions (org.discotools.gwt.leaflet.client.map.MapOptions)1 Option (org.opennms.features.vaadin.nodemaps.internal.gwt.client.Option)1