public static class IconOptions.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(java.lang.String iconUrl)
Instantiates a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
IconOptions |
build()
Builds the.
|
IconOptions.Builder |
className(java.lang.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(java.lang.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 |
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(java.lang.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(java.lang.String shadowUrl)
The URL to the icon shadow image.
|
public Builder(java.lang.String iconUrl)
iconUrl - the icon urlpublic IconOptions.Builder iconRetinaUrl(java.lang.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(java.lang.String shadowUrl)
shadowUrl - the shadow urlpublic IconOptions.Builder shadowRetinaUrl(java.lang.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(java.lang.String className)
className - the class namepublic IconOptions build()