public static class IconOptions.Builder extends Object
| Constructor and Description |
|---|
Builder(String iconUrl)
Instantiates a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
IconOptions.Builder |
attribution(String attribution) |
IconOptions |
build()
Builds the.
|
IconOptions.Builder |
className(String className)
A custom class name to assign to both icon and shadow images.
|
IconOptions.Builder |
iconAnchor(Point iconAnchor)
The coordinates of the "tip" of the icon (relative to its top left corner).
|
IconOptions.Builder |
iconRetinaUrl(String iconRetinaUrl)
The URL to a retina sized version of the icon image (absolute or relative to your script path).
|
IconOptions.Builder |
iconSize(Point iconSize)
Size of the icon image in pixels.
|
IconOptions.Builder |
pane(String pane) |
IconOptions.Builder |
popupAnchor(Point popupAnchor)
The coordinates of the point from which popups will "open", relative to the icon anchor.
|
IconOptions.Builder |
shadowAnchor(Point shadowAnchor)
The coordinates of the "tip" of the shadow (relative to its top left corner) (the same as iconAnchor if not specified).
|
IconOptions.Builder |
shadowRetinaUrl(String shadowRetinaUrl)
The URL to the retina sized version of the icon shadow image.
|
IconOptions.Builder |
shadowSize(Point shadowSize)
Size of the shadow image in pixels.
|
IconOptions.Builder |
shadowUrl(String shadowUrl)
The URL to the icon shadow image.
|
public Builder(String iconUrl)
iconUrl - the icon urlpublic IconOptions.Builder iconRetinaUrl(String iconRetinaUrl)
iconRetinaUrl - the icon retina urlpublic IconOptions.Builder iconSize(Point iconSize)
iconSize - the icon sizepublic IconOptions.Builder iconAnchor(Point iconAnchor)
iconAnchor - the icon anchorpublic IconOptions.Builder shadowUrl(String shadowUrl)
shadowUrl - the shadow urlpublic IconOptions.Builder shadowRetinaUrl(String shadowRetinaUrl)
shadowRetinaUrl - the shadow retina urlpublic IconOptions.Builder shadowSize(Point shadowSize)
shadowSize - the shadow sizepublic IconOptions.Builder shadowAnchor(Point shadowAnchor)
shadowAnchor - the shadow anchorpublic IconOptions.Builder popupAnchor(Point popupAnchor)
popupAnchor - the popup anchorpublic IconOptions.Builder className(String className)
className - the class namepublic IconOptions.Builder pane(String pane)
public IconOptions.Builder attribution(String attribution)
public IconOptions build()
Copyright © 2018 G-Widgets. All rights reserved.