Package org.geomajas.puregwt.client.map.event

Examples of org.geomajas.puregwt.client.map.event.LayerSelectionHandler


    this.mapInfo = mapInfo;
    this.viewPort = viewPort;
    this.eventBus = eventBus;

    // Add a layer selection handler that allows only one selected layer at a time:
    eventBus.addHandler(LayerSelectionHandler.TYPE, new LayerSelectionHandler() {

      public void onSelectLayer(LayerSelectedEvent event) {
        for (Layer<?> layer : layers) {
          if (layer.isSelected() && !layer.equals(event.getLayer())) {
            layer.setSelected(false);
View Full Code Here


    Layer<?> layer2 = layersModel.getLayer(LAYER2);

    selectId = null;
    deselectId = null;

    HandlerRegistration reg = eventBus.addHandler(LayerSelectionHandler.TYPE, new LayerSelectionHandler() {

      public void onSelectLayer(LayerSelectedEvent event) {
        selectId = event.getLayer().getId();
      }
View Full Code Here

TOP

Related Classes of org.geomajas.puregwt.client.map.event.LayerSelectionHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.