public class PictureMarkerSymbol extends MarkerSymbol
Modifier and Type | Method and Description |
---|---|
static PictureMarkerSymbol |
create(com.google.gwt.core.client.JavaScriptObject json)
Creates a new PictureMarkerSymbol object using a JSON object.
|
static PictureMarkerSymbol |
create(java.lang.String url,
int width,
int height)
Creates a new PictureMarkerSymbol object.
|
double |
getHeight()
Height of the image in pixels.
|
java.lang.String |
getUrl()
URL of the image.
|
double |
getWidth()
Width of the image in pixels.
|
PictureMarkerSymbol |
setHeight(int height)
Sets the height of the image for display.
|
PictureMarkerSymbol |
setUrl(java.lang.String url)
Sets the URL where the image is located.
|
PictureMarkerSymbol |
setWidth(int width)
Sets the width of the image for display.
|
getAngle, getSize, getXOffset, getYOffset, setAngle, setOffset, setSize
fromJson, getColor, getType, setColor, toJson
public static PictureMarkerSymbol create(com.google.gwt.core.client.JavaScriptObject json)
json
- - JSON object representing the PictureMarkerSymbol.public static PictureMarkerSymbol create(java.lang.String url, int width, int height)
url
- - URL of the image.width
- - Width of the image in pixels. The default value is the actual width of the image.height
- - Height of the image in pixels. The default value is the actual height of the image.public final double getHeight()
public final java.lang.String getUrl()
public final double getWidth()
public final PictureMarkerSymbol setHeight(int height)
height
- - Height of marker in pixels.public final PictureMarkerSymbol setUrl(java.lang.String url)
url
- - URL location of marker image.public final PictureMarkerSymbol setWidth(int width)
width
- - Width of marker in pixels.