@JsType(isNative=true, namespace="Cesium", name="PinBuilder") public class PinBuilder extends Object
Constructor and Description |
---|
PinBuilder()
A utility class for generating custom map pins as canvas elements.
|
Modifier and Type | Method and Description |
---|---|
com.google.gwt.dom.client.CanvasElement |
fromColor(Color color,
int size)
Creates an empty pin of the specified color and size.
|
com.google.gwt.dom.client.CanvasElement |
fromMakiIconId(String id,
Color color,
int size)
Creates a pin with the specified maki icon identifier, color, and size.
|
Promise<com.google.gwt.dom.client.CanvasElement,Void> |
fromMakiIconIdPromise(String id,
Color color,
int size)
Creates a pin with the specified maki icon identifier, color, and size.
|
com.google.gwt.dom.client.CanvasElement |
fromText(String text,
Color color,
int size)
Creates a pin with the specified text, color, and size.
|
com.google.gwt.dom.client.CanvasElement |
fromUrl(String url,
Color color,
int size)
Creates a pin with the specified icon, color, and size.
|
Promise<com.google.gwt.dom.client.CanvasElement,Void> |
fromUrlPromise(String url,
Color color,
int size)
Creates a pin with the specified icon, color, and size.
|
@JsConstructor public PinBuilder()
@JsMethod public com.google.gwt.dom.client.CanvasElement fromColor(Color color, int size)
color
- The color of the pin.size
- The size of the pin, in pixels.@JsMethod public com.google.gwt.dom.client.CanvasElement fromMakiIconId(String id, Color color, int size)
id
- The id of the maki icon to be stamped onto the pin.color
- The color of the pin.size
- The size of the pin, in pixels.@JsMethod(name="fromMakiIconId") public Promise<com.google.gwt.dom.client.CanvasElement,Void> fromMakiIconIdPromise(String id, Color color, int size)
id
- The id of the maki icon to be stamped onto the pin.color
- The color of the pin.size
- The size of the pin, in pixels.@JsMethod public com.google.gwt.dom.client.CanvasElement fromText(String text, Color color, int size)
text
- The text to be stamped onto the pin.color
- The color of the pin.size
- The size of the pin, in pixels.@JsMethod public com.google.gwt.dom.client.CanvasElement fromUrl(String url, Color color, int size)
url
- The url of the image to be stamped onto the pin.color
- The color of the pin.size
- The size of the pin, in pixels.@JsMethod(name="fromUrl") public Promise<com.google.gwt.dom.client.CanvasElement,Void> fromUrlPromise(String url, Color color, int size)
url
- The url of the image to be stamped onto the pin.color
- The color of the pin.size
- The size of the pin, in pixels.Copyright © 2019. All rights reserved.