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

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


      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) {
        controller.setController(new PolygonEditController(mapWidget, controller));
      } else if (vLayer.getLayerInfo().getLayerType() == LayerType.MULTIPOLYGON) {
View Full Code Here


      } 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) {
        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) {
        controller.setController(new PolygonEditController(mapWidget, controller));
      } else if (vLayer.getLayerInfo().getLayerType() == LayerType.MULTIPOLYGON) {
View Full Code Here

TOP

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

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.