| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
WebMapLayer.LanguageEditor |
|
class |
WebMapLayer.WebMapLayerBean |
|
static class |
WebMapLayer.WebMapLayerBeanBeanInfo |
|
static class |
WebMapLayer.WebMapProviderEditor |
| 构造器 | 说明 |
|---|---|
WebMapLayer() |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Rectangle |
calculateViewportBounds(Graphics2D g,
int width,
int height) |
Calculate view port bounds
|
void |
drawMapTiles(Graphics2D g,
int zoom,
int width,
int height) |
Draw the map tiles
|
void |
drawMapTiles(Graphics2D g,
int zoom,
Rectangle viewportBounds) |
Draw the map tiles.
|
GeoPosition |
getAddressLocation() |
|
Point2D |
getCenter() |
Gets the current pixel center of the map.
|
GeoPosition |
getCenterPosition() |
A property indicating the center position of the map
|
String |
getLayerInfo() |
To string
|
Image |
getLoadingImage() |
A property for an image which will be display when an image is still
loading.
|
TileFactory |
getTileFactory() |
Get the current factory
|
WebMapProvider |
getWebMapProvider() |
Get web map provider
|
int |
getZoom() |
Gets the current zoom level
|
boolean |
isDrawTileBorders() |
Indicates if the tile borders should be drawn.
|
boolean |
isRestrictOutsidePanning() |
|
boolean |
isTileOnMap(int x,
int y,
Dimension mapSize) |
|
void |
repaint() |
Repaint
|
void |
setAddressLocation(GeoPosition pos) |
|
void |
setAddressLocation(GeoPosition pos,
int zoom) |
|
void |
setCenter(Point2D center) |
Sets the new center of the map in pixel coordinates.
|
void |
setCenterPosition(GeoPosition geoPosition) |
A property indicating the center position of the map
|
void |
setDrawTileBorders(boolean drawTileBorders) |
Set if the tile borders should be drawn.
|
void |
setLoadingImage(Image loadingImage) |
A property for an image which will be display when an image is still
loading.
|
void |
setRestrictOutsidePanning(boolean restrictOutsidePanning) |
|
void |
setTileFactory(TileFactory factory) |
Set the current tile factory
|
void |
setWebMapProvider(WebMapProvider prov) |
Set web map provider
|
void |
setZoom(int zoom) |
Set the current zoom level
|
clone, getExtent, getFileName, getHandle, getLayerDrawType, getLayerName, getLayerType, getLegendScheme, getProjInfo, getShapeType, getTag, getTransparency, getVisibleScale, hasLegendScheme, isExpanded, isMaskout, isVisible, saveFile, saveFile, setExpanded, setExtent, setFileName, setHandle, setLayerDrawType, setLayerName, setLayerType, setLegendScheme, setMaskout, setProjInfo, setShapeType, setTag, setTransparency, setVisible, setVisibleScale, toStringpublic int getZoom()
public void setZoom(int zoom)
zoom - the new zoom levelpublic Point2D getCenter()
public boolean isRestrictOutsidePanning()
public void setRestrictOutsidePanning(boolean restrictOutsidePanning)
public void setCenter(Point2D center)
center - the new center of the map in pixel coordinatespublic void setCenterPosition(GeoPosition geoPosition)
geoPosition - the new property valuepublic GeoPosition getCenterPosition()
public TileFactory getTileFactory()
public void setTileFactory(TileFactory factory)
factory - the new property valuepublic Image getLoadingImage()
public void setLoadingImage(Image loadingImage)
loadingImage - the new property valuepublic boolean isDrawTileBorders()
public void setDrawTileBorders(boolean drawTileBorders)
drawTileBorders - new value of this drawTileBorderspublic void setWebMapProvider(WebMapProvider prov)
prov - The web map providerpublic WebMapProvider getWebMapProvider()
public GeoPosition getAddressLocation()
public void setAddressLocation(GeoPosition pos, int zoom)
public void setAddressLocation(GeoPosition pos)
public void repaint()
public void drawMapTiles(Graphics2D g, int zoom, int width, int height)
g - Graphics2Dzoom - Zoom level to draw atwidth - The widthheight - The heightpublic void drawMapTiles(Graphics2D g, int zoom, Rectangle viewportBounds)
g - Graphicszoom - zoom level to draw atviewportBounds - View boundspublic boolean isTileOnMap(int x,
int y,
Dimension mapSize)
public Rectangle calculateViewportBounds(Graphics2D g, int width, int height)
g - Graphic2Dwidth - The widthheight - The heightpublic String getLayerInfo()
getLayerInfo 在类中 MapLayerCopyright © 2019. All rights reserved.