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

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


  public void addLayer(ClientLayerInfo layerInfo) {
    switch (layerInfo.getLayerType()) {
      case RASTER:
        RasterLayer rLayer = new RasterLayer((ClientRasterLayerInfo) layerInfo, viewPort, eventBus);
        layers.add(rLayer);
        eventBus.fireEvent(new LayerAddedEvent(rLayer));
        break;
      default:
        VectorLayer vLayer = new VectorLayer((ClientVectorLayerInfo) layerInfo, viewPort, eventBus);
        layers.add(vLayer);
        eventBus.fireEvent(new LayerAddedEvent(vLayer));
        break;
    }
  }
View Full Code Here

TOP

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

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.