use of org.discotools.gwt.leaflet.client.controls.zoom.Zoom in project opennms by OpenNMS.
the class NodeMapWidget method addZoomControl.
private void addZoomControl() {
LOG.info("NodeMapWidget.addZoomControl()");
final ZoomOptions options = new ZoomOptions();
options.setPosition("topright");
m_map.addControl(new Zoom(options));
}
use of org.discotools.gwt.leaflet.client.controls.zoom.Zoom in project activityinfo by bedatadriven.
the class MapEditorMapView method setZoomControlOffsetX.
public void setZoomControlOffsetX(int offset) {
zoomControlOffsetX = offset;
if (map != null) {
try {
Zoom zoomControl = map.getMap().getZoomControl();
Element container = zoomControl.getContainer();
container.getStyle().setMarginLeft(zoomControlOffsetX, Unit.PX);
} catch (Exception e) {
Log.error("Exception thrown while setting zoom control", e);
}
}
}
Aggregations