public class StaticMap extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
StaticMap.Maptype |
| Constructor and Description |
|---|
StaticMap(int width,
int height,
String apiKey)
The dimensions (points) will be multiplied with the scale factor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMarker(StaticMarker marker) |
void |
addPath(StaticPath path) |
Format |
getFormat() |
int |
getHeight() |
int |
getHeightPoints() |
Locale |
getLocale() |
StaticMap.Maptype |
getMaptype() |
List<StaticMarker> |
getMarkers() |
List<StaticPath> |
getPaths() |
int |
getScale() |
int |
getWidth() |
int |
getWidthPoints() |
boolean |
hasContent()
Any markers or paths present?
|
void |
setFormat(Format format)
Format.PNG, if none specified. |
void |
setLocale(Locale locale) |
void |
setLocation(Location center,
int zoom) |
void |
setMaptype(StaticMap.Maptype maptype) |
void |
setMarkers(List<StaticMarker> markers) |
void |
setPaths(List<StaticPath> paths) |
void |
setScale(int scale)
Default: 1.
|
String |
toString()
Google-Map-Link
|
public StaticMap(int width,
int height,
String apiKey)
width - pointsheight - pointsapiKey - public int getScale()
public void setScale(int scale)
scale - public void setLocation(Location center, int zoom)
zoom - 1: World 5: Landmass/continent 10: City 15: Streets 20:
Buildingspublic int getWidth()
public int getHeight()
public int getWidthPoints()
public int getHeightPoints()
public List<StaticMarker> getMarkers()
public void setMarkers(List<StaticMarker> markers)
public void addMarker(StaticMarker marker)
public List<StaticPath> getPaths()
public void setPaths(List<StaticPath> paths)
public void addPath(StaticPath path)
public StaticMap.Maptype getMaptype()
public void setMaptype(StaticMap.Maptype maptype)
public Format getFormat()
public void setFormat(Format format)
Format.PNG, if none specified.format - public boolean hasContent()
public Locale getLocale()
public void setLocale(Locale locale)
Copyright © 2018. All rights reserved.