Constructor and Description |
---|
IconOptions(String url)
Creates an Icon options instance
|
Modifier and Type | Method and Description |
---|---|
IconOptions |
setClassName(String className)
Sets className option
|
IconOptions |
setIconAnchor(Point anchor)
Sets icon anchor option
|
IconOptions |
setIconRetinaUrl(String url)
Sets icon retina url option
|
IconOptions |
setIconSize(Point size)
Sets icon size option
|
IconOptions |
setPopupAnchor(Point anchor)
Sets popup anchor option
|
IconOptions |
setShadowAnchor(Point anchor)
Sets shadow anchor option
|
IconOptions |
setShadowRetinaUrl(String url)
Sets shadow retina url option
|
IconOptions |
setShadowSize(Point size)
Sets shadow size option
|
IconOptions |
setShadowUrl(String url)
Sets shadow url option
|
public IconOptions(String url)
url
- The URL to the icon image (absolute or relative to your script
path).public IconOptions setIconRetinaUrl(String url)
url
- The URL to a retina sized version of the icon image (absolute
or relative to your script path). Used for Retina screen devices.public IconOptions setIconSize(Point size)
size
- Size of the icon image in pixels.public IconOptions setIconAnchor(Point anchor)
anchor
- The coordinates of the "tip" of the icon (relative to its
top left corner). The icon will be aligned so that this point is at the
marker's geographical location. Centered by default if size is specified,
also can be set in CSS with negative margins.public IconOptions setShadowUrl(String url)
url
- The URL to the icon shadow image. If not specified, no shadow
image will be created.public IconOptions setShadowRetinaUrl(String url)
url
- The URL to the retina sized version of the icon shadow image.
If not specified, no shadow image will be created. Used for Retina screen
devices.public IconOptions setShadowSize(Point size)
size
- Size of the shadow image in pixels.public IconOptions setShadowAnchor(Point anchor)
anchor
- The coordinates of the "tip" of the shadow (relative to its
top left corner) (the same as iconAnchor
if not specified).public IconOptions setPopupAnchor(Point anchor)
anchor
- The coordinates of the point from which popups will "open",
relative to the icon anchor.public IconOptions setClassName(String className)
className
- A custom class name to assign to both icon and shadow
images. Empty by default.Copyright © 2017. All rights reserved.