Package org.geomajas.gwt.client.controller.editing

Examples of org.geomajas.gwt.client.controller.editing.PointEditController


    Layer<?> layer = mapWidget.getMapModel().getSelectedLayer();
    if (layer != null && layer instanceof VectorLayer) {
      mapWidget.getMapModel().getFeatureEditor().startEditing(null, null);
      VectorLayer vLayer = (VectorLayer) layer;
      if (vLayer.getLayerInfo().getLayerType() == LayerType.POINT) {
        controller.setController(new PointEditController(mapWidget, controller));
      } else if (vLayer.getLayerInfo().getLayerType() == LayerType.LINESTRING) {
        controller.setController(new LineStringEditController(mapWidget, controller));
      } else if (vLayer.getLayerInfo().getLayerType() == LayerType.MULTILINESTRING) {
        controller.setController(new MultiLineStringEditController(mapWidget, controller));
      } else if (vLayer.getLayerInfo().getLayerType() == LayerType.POLYGON) {
View Full Code Here


      FeatureTransaction ft = mapWidget.getMapModel().getFeatureEditor().startEditing(
          new Feature[] { feature.clone() }, new Feature[] { feature.clone() });
      mapWidget.render(ft, RenderGroup.VECTOR, RenderStatus.ALL);
      VectorLayer vLayer = feature.getLayer();
      if (vLayer.getLayerInfo().getLayerType() == LayerType.POINT) {
        controller.setController(new PointEditController(mapWidget, controller));
      } else if (vLayer.getLayerInfo().getLayerType() == LayerType.MULTIPOINT) {
        mapWidget.getMapModel().getFeatureEditor().stopEditing();
        mapWidget.render(ft, RenderGroup.VECTOR, RenderStatus.DELETE);
        SC.warn("Editing of MultiPoint layers is not supported yet....");
      } else if (vLayer.getLayerInfo().getLayerType() == LayerType.LINESTRING) {
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.controller.editing.PointEditController

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.