Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.GetVectorTileResponse


    request.setLayerId(LAYER_ID);
    request.setCode(new TileCode(0, 0, 0));
    request.setPanOrigin(new Coordinate(0, 0));
    request.setRenderer(GetVectorTileRequest.PARAM_SVG_RENDERER);
    request.setScale(1.0);
    GetVectorTileResponse response = (GetVectorTileResponse) dispatcher.execute(
        GetVectorTileRequest.COMMAND, request, null, "en");
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
    }
    Assert.assertFalse(response.isError());
    VectorTile tile = response.getTile();
    Assert.assertNotNull(tile);
    Assert.assertNotNull(tile.getFeatureContent());
    Assert.assertEquals(
        "<g id=\"countries.features.0-0-0\">" +
            "<g style=\"fill:#995500;fill-opacity:0.6;stroke:#995500;stroke-opacity:0.3;stroke-width:1px;\" " +
View Full Code Here


    final VectorTile self = this;
    deferred = GwtCommandDispatcher.getInstance().execute(command, new CommandCallback<GetVectorTileResponse>() {

      public void execute(GetVectorTileResponse response) {
        if (!(deferred != null && deferred.isCancelled())) {
          GetVectorTileResponse tileResponse = (GetVectorTileResponse) response;
          org.geomajas.layer.tile.VectorTile tile = tileResponse.getTile();
          for (TileCode relatedTile : tile.getCodes()) {
            codes.add(relatedTile);
          }
          code = tile.getCode();
          screenWidth = tile.getScreenWidth();
View Full Code Here

  @Autowired
  private VectorLayerService layerService;

  public GetVectorTileResponse getEmptyCommandResponse() {
    return new GetVectorTileResponse();
  }
View Full Code Here

    Command command = createCommand();
    deferred = service.execute(command, new CommandCallback() {

      public void onSuccess(CommandResponse response) {
        if (!(deferred != null && deferred.isCancelled()) && response instanceof GetVectorTileResponse) {
          GetVectorTileResponse tileResponse = (GetVectorTileResponse) response;
          VectorTile tile = tileResponse.getTile();
          for (TileCode relatedTile : tile.getCodes()) {
            siblings.add(relatedTile);
          }
          if (tile.getContentType() == VectorTileContentType.STRING_CONTENT) {
            display = new VectorTileObject();
View Full Code Here

TOP

Related Classes of org.geomajas.command.dto.GetVectorTileResponse

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.