Package org.geomajas.puregwt.client.map.layer

Examples of org.geomajas.puregwt.client.map.layer.FeaturesSupported


    }

    public void execute(List<Feature> features) {
      if (features != null && features.size() > 0) {
        for (Feature feature : features) {
          FeaturesSupported fs = (FeaturesSupported) feature.getLayer();
          if (select) {
            fs.selectFeature(feature);
          } else {
            fs.deselectFeature(feature);
          }
        }
      }
    }
View Full Code Here


  // ------------------------------------------------------------------------

  public void search(String crs, final Layer<?> layer, Geometry location, double buffer,
      final FeatureCallback callback) {
    if (layer instanceof FeaturesSupported) {
      FeaturesSupported fs = (FeaturesSupported) layer;
      SearchByLocationRequest request = new SearchByLocationRequest();
      request.setBuffer(buffer);
      request.setLayerIds(new String[] { layer.getServerLayerId() });
      request.setFilter(layer.getId(), fs.getFilter());
      request.setLocation(geometryConverter.toDto(location));
      request.setSearchType(SearchType.SEARCH_ALL_LAYERS.getValue());
      request.setCrs(crs);
      request.setFeatureIncludes(11);
View Full Code Here

    });
  }

  public void search(String crs, final Layer<?> layer, SearchCriterion[] criteria, final FeatureCallback callback) {
    if (layer instanceof FeaturesSupported) {
      FeaturesSupported fs = (FeaturesSupported) layer;
      SearchFeatureRequest request = new SearchFeatureRequest();
      request.setBooleanOperator("OR");
      request.setCriteria(criteria);
      request.setMax(resultSize);
      request.setLayerId(layer.getServerLayerId());
      request.setCrs(crs);
      request.setFilter(fs.getFilter());
      request.setFeatureIncludes(11);

      Command command = new Command(SearchFeatureRequest.COMMAND);
      command.setCommandRequest(request);
      commandService.execute(command, new CommandCallback() {
View Full Code Here

  public Geometry getGeometry() {
    return geometry;
  }

  public boolean isSelected() {
    FeaturesSupported fs = (FeaturesSupported) layer;
    return fs.isFeatureSelected(id);
  }
View Full Code Here

TOP

Related Classes of org.geomajas.puregwt.client.map.layer.FeaturesSupported

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.