Tabnine Logo
TileCode.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
org.geomajas.layer.tile.TileCode

Best Java code snippets using org.geomajas.layer.tile.TileCode.toString (Showing top 6 results out of 315)

origin: org.geomajas/geomajas-gwt-client-impl

public VectorTilePresenter getTile(TileCode tileCode) {
  return tiles.get(tileCode.toString());
}
origin: org.geomajas/geomajas-gwt-client-impl

public VectorTilePresenter addTile(TileCode tileCode) {
  VectorTilePresenter tilePresenter = tiles.get(tileCode.toString());
  if (tilePresenter == null) {
    tilePresenter = new VectorTilePresenter(commandService, this, tileCode.clone(), scale, crs,
        new TileLoadCallback());
    nrLoadingTiles++;
    tiles.put(tileCode.toString(), tilePresenter);
  }
  return tilePresenter;
}
origin: org.geomajas.plugin/geomajas-plugin-wmsclient

public void render(Bbox bounds) {
  if (layer.isShowing()) {
    List<TileCode> tilesForBounds = tileService.getTileCodesForBounds(layer.getViewPort(),
        layer.getTileConfig(), bounds, scale);
    for (TileCode tileCode : tilesForBounds) {
      if (!tiles.containsKey(tileCode.toString())) {
        RasterTile tile = createTile(tileCode);
        // Add the tile to the list and render it:
        tiles.put(tileCode.toString(), tile);
        nrLoadingTiles++;
        renderTile(tile, new ImageCounter());
      }
    }
  }
}
origin: org.geomajas/geomajas-gwt-client-impl

@Override
public void render(Bbox bbox) {
  // Only fetch when inside the layer bounds:
  if (BboxService.intersects(bbox, layerBounds) && vectorLayer.isShowing()) {
    // Find needed tile codes:
    List<TileCode> tempCodes = calcCodesForBounds(bbox);
    for (TileCode tileCode : tempCodes) {
      VectorTilePresenter tilePresenter = tiles.get(tileCode.toString());
      if (tilePresenter == null) {
        // New tile
        tilePresenter = addTile(tileCode);
        tilePresenter.render();
      } else if (tilePresenter.getSiblingStatus() == VectorTilePresenter.STATUS.EMPTY) {
        // Tile already exists, but the siblings have not yet been loaded:
        tilePresenter.renderSiblings();
      }
    }
  }
}
origin: org.geomajas.plugin/geomajas-plugin-wmsclient

@Override
public List<RasterTile> getTiles(double scale, Bbox worldBounds) {
  List<TileCode> codes = tileService.getTileCodesForBounds(getViewPort(), tileConfig, worldBounds, scale);
  List<RasterTile> tiles = new ArrayList<RasterTile>();
  if (!codes.isEmpty()) {
    double actualScale = viewPort.getZoomStrategy().getZoomStepScale(codes.get(0).getTileLevel());
    for (TileCode code : codes) {
      Bbox bounds = tileService.getWorldBoundsForTile(getViewPort(), tileConfig, code);
      RasterTile tile = new RasterTile(getScreenBounds(actualScale, bounds), code.toString());
      tile.setCode(code);
      tile.setUrl(wmsService.getMapUrl(getConfig(), getCrs(), bounds, tileConfig.getTileWidth(),
          tileConfig.getTileHeight()));
      tiles.add(tile);
    }
  }
  return tiles;
}
origin: org.geomajas.plugin/geomajas-plugin-wmsclient

private RasterTile createTile(TileCode tileCode) {
  Bbox worldBounds = tileService.getWorldBoundsForTile(layer.getViewPort(), layer.getTileConfig(), tileCode);
  RasterTile tile = new RasterTile(getScreenBounds(worldBounds), tileCode.toString());
  tile.setCode(tileCode);
  tile.setUrl(wmsService.getMapUrl(layer.getConfig(), layer.getCrs(), worldBounds, layer.getTileConfig()
      .getTileWidth(), layer.getTileConfig().getTileHeight()));
  return tile;
}
org.geomajas.layer.tileTileCodetoString

Javadoc

Return the values as a readable text: TileLevel-X-Y.

Popular methods of TileCode

  • <init>
    The only constructor available. It requires you to immediately set all it's values.
  • getX
    Get the X-ordinate at the given level: X=[0, (2^tileLevel) - 1].
  • getY
    Get the Y-ordinate at the given level: Y=[0, (2^tileLevel) - 1].
  • getTileLevel
    Get the tiling depth level. Where 0 means the top level. Make sure this is always a positive integer
  • clone
    Create a clone from this object.
  • setTileLevel
    set the tiling depth level. Where 0 means the top level. Make sure this is always a positive integer
  • setX
    The X-ordinate at the given level: X=[0, (2^tileLevel) - 1].
  • setY
    The Y-ordinate at the given level: Y=[0, (2^tileLevel) - 1].

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now