public static class DivIconOptions.Builder extends Object
Constructor and Description |
---|
Builder(String iconUrl)
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
DivIconOptions.Builder |
attribution(String attribution) |
DivIconOptions.Builder |
bgPos(Point bgPos) |
DivIconOptions |
build()
Builds th DivIconOptions new instance
|
DivIconOptions.Builder |
className(String className)
A custom class name to assign to the icon.
|
DivIconOptions.Builder |
html(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 |
iconRetinaUrl(String iconRetinaUrl) |
DivIconOptions.Builder |
iconSize(Point iconSize)
Size of the icon in pixels.
|
DivIconOptions.Builder |
pane(String pane) |
DivIconOptions.Builder |
popUpAnchor(Point popUpAnchor)
The coordinates of the point from which popups will "open", relative to the icon anchor.
|
DivIconOptions.Builder |
shadowAnchor(Point shadowAnchor) |
DivIconOptions.Builder |
shadowRetinaUrl(String shadowRetinaUrl) |
DivIconOptions.Builder |
shadowSize(Point shadowSize) |
DivIconOptions.Builder |
shadowUrl(String shadowUrl) |
public Builder(String iconUrl)
iconUrl
- the icon urlpublic 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(String className)
className
- the class namepublic DivIconOptions.Builder html(String html)
html
- the htmlpublic DivIconOptions.Builder bgPos(Point bgPos)
public DivIconOptions.Builder iconRetinaUrl(String iconRetinaUrl)
public DivIconOptions.Builder shadowUrl(String shadowUrl)
public DivIconOptions.Builder shadowRetinaUrl(String shadowRetinaUrl)
public DivIconOptions.Builder shadowSize(Point shadowSize)
public DivIconOptions.Builder shadowAnchor(Point shadowAnchor)
public DivIconOptions.Builder pane(String pane)
public DivIconOptions.Builder attribution(String attribution)
public DivIconOptions build()
Copyright © 2018 G-Widgets. All rights reserved.