@Api(allMethods=true) public interface InternalTile extends Serializable
General definition for a tile that is used internally on the server-side. When a tile needs to be send to the client, it must first be converted to a DTO tile. A tile is defined by creating a rectangular grid in map coordinates based on the maximum extent of the layer. This requires a transformation of this maximum extent from layer coordinates to map coordinates.
| Modifier and Type | Method and Description |
|---|---|
void |
addCode(int level,
int x,
int y)
Add another details (code) for another tile which should be added to the list of dependent tiles.
|
void |
addFeature(InternalFeature feature)
Add a feature in the tile.
|
com.vividsolutions.jts.geom.Envelope |
getBounds()
Get bounding box for the tile (in map coordinates).
|
TileCode |
getCode()
Returns the unique code for this tile.
|
List<TileCode> |
getCodes()
All tiles that have at least one feature that geographically intersects with this tile are called dependent
tiles.
|
VectorTile.VectorTileContentType |
getContentType()
Return the rendering method used.
|
String |
getFeatureContent()
Return the rendering of a tile's features.
|
List<InternalFeature> |
getFeatures()
Get features for this tile (contained
Geometry objects use map coordinates). |
String |
getLabelContent()
Return the rendering of a tile's labels.
|
int |
getScreenHeight()
Return the tile's height, expressed in client side pixels.
|
int |
getScreenWidth()
Return the tile's width, expressed in client side pixels.
|
double |
getTileHeight()
Return the tile's height (in map coordinates).
|
double |
getTileWidth()
Return the tile's width (in map coordinates).
|
boolean |
isClipped()
Returns whether or not at least one feature within this tile has been clipped.
|
void |
setBounds(com.vividsolutions.jts.geom.Envelope bounds)
Set bounding box for the tile (in map coordinates).
|
void |
setClipped(boolean clipped)
Set whether or not at least one feature within this tile has been clipped.
|
void |
setCode(TileCode code)
Set the unique code for this tile.
|
void |
setCodes(List<TileCode> codes)
All tiles that have at least one feature that geographically intersects with this tile are called dependent
tiles.
|
void |
setContentType(VectorTile.VectorTileContentType contentType)
Set the rendering method used.
|
void |
setFeatureContent(String featureContent)
Set the rendered content of a tile's features.
|
void |
setFeatures(List<InternalFeature> features)
Set list of features for this tile (contained
Geometry objects use map
coordinates). |
void |
setLabelContent(String labelContent)
Set the rendered content of a tile's labels.
|
void |
setScreenHeight(int screenHeight)
Set the tile's height, expressed in client side pixels.
|
void |
setScreenWidth(int screenWidth)
Set the tile's width, expressed in client side pixels.
|
void |
setTileHeight(double tileHeight)
Set the tile's height (in map coordinates).
|
void |
setTileWidth(double tileWidth)
Set the tile's width (in map coordinates).
|
VectorTile.VectorTileContentType getContentType()
void setContentType(VectorTile.VectorTileContentType contentType)
contentType - content typeString getFeatureContent()
void setFeatureContent(String featureContent)
featureContent - The new value for the actual rendered feature content of this tile.String getLabelContent()
void setLabelContent(String labelContent)
labelContent - The new value for the actual rendered label content of this tile.com.vividsolutions.jts.geom.Envelope getBounds()
void setBounds(com.vividsolutions.jts.geom.Envelope bounds)
bounds - bounding boxList<InternalFeature> getFeatures()
Geometry objects use map coordinates).void setFeatures(List<InternalFeature> features)
Geometry objects use map
coordinates).features - list of featuresvoid addFeature(InternalFeature feature)
feature - feature to adddouble getTileWidth()
void setTileWidth(double tileWidth)
tileWidth - The tile's width.double getTileHeight()
void setTileHeight(double tileHeight)
tileHeight - The tile's height.int getScreenWidth()
void setScreenWidth(int screenWidth)
screenWidth - The new value.int getScreenHeight()
void setScreenHeight(int screenHeight)
screenHeight - The new value.void addCode(int level,
int x,
int y)
level - tile level for dependent tilex - x ordinate for dependent tiley - y ordinate for dependent tileList<TileCode> getCodes()
void setCodes(List<TileCode> codes)
codes - Set the list of tiles that are dependent on this one.boolean isClipped()
void setClipped(boolean clipped)
clipped - The new value.TileCode getCode()
void setCode(TileCode code)
code - The tile's code.Copyright © 2015 Geosparc. All Rights Reserved.