public static class DivIconOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DivIconOptions |
build()
Builds th DivIconOptions new instance
|
DivIconOptions.Builder |
className(java.lang.String className)
A custom class name to assign to the icon.
|
DivIconOptions.Builder |
html(java.lang.String html)
A custom HTML code to put inside the div element, empty by default.
|
DivIconOptions.Builder |
iconAnchor(Point iconAnchor)
The coordinates of the "tip" of the icon (relative to its top left corner).
|
DivIconOptions.Builder |
iconSize(Point iconSize)
Size of the icon in pixels.
|
DivIconOptions.Builder |
popUpAnchor(Point popUpAnchor)
The coordinates of the point from which popups will "open", relative to the icon anchor.
|
public DivIconOptions.Builder iconSize(Point iconSize)
iconSize
- the icon sizepublic DivIconOptions.Builder iconAnchor(Point iconAnchor)
iconAnchor
- the icon anchorpublic DivIconOptions.Builder popUpAnchor(Point popUpAnchor)
popUpAnchor
- the pop up anchorpublic DivIconOptions.Builder className(java.lang.String className)
className
- the class namepublic DivIconOptions.Builder html(java.lang.String html)
html
- the htmlpublic DivIconOptions build()