@Tag(value="google-map-marker")
@JsModule(value="@flowingcode/google-map/google-map-marker.js")
@NpmPackage(value="@flowingcode/google-map",
version="3.0.0")
public class GoogleMapMarker
extends com.vaadin.flow.component.Component
Constructor and Description |
---|
GoogleMapMarker()
Instantiates a new GoogleMapMarker.
|
GoogleMapMarker(String caption,
LatLon position,
boolean draggable)
Instantiates a new GoogleMapMarker
|
GoogleMapMarker(String caption,
LatLon position,
boolean draggable,
String iconUrl)
Instantiates a new GoogleMapMarker
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCaption()
Gets the caption of the marker.
|
String |
getIconUrl()
Returns the url of the icon of the marker.
|
long |
getIdentifier() |
LatLon |
getPosition()
Returns the position of the marker.
|
int |
hashCode() |
boolean |
hasSameFieldValues(GoogleMapMarker other) |
boolean |
isAnimationEnabled()
Checks if marker animation is enabled.
|
boolean |
isDraggable()
Checks if the marker is draggable.
|
boolean |
isOptimized()
Checks if optimization is enabled.
|
void |
setAnimationEnabled(boolean animationEnabled)
Enables/disables marker animation.
|
void |
setCaption(String caption)
Sets the caption of the marker.
|
void |
setDraggable(boolean draggable)
Enables/disables dragging of the marker.
|
void |
setIconUrl(String iconUrl)
Sets the url of the icon of the marker.
|
void |
setIdentifier(long id) |
void |
setOptimized(boolean optimized)
Enables/disables marker optimization.
|
void |
setPosition(LatLon position)
Sets the position of the marker.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
public GoogleMapMarker()
public GoogleMapMarker(String caption, LatLon position, boolean draggable)
caption
- The caption to use.position
- The position of the markerdraggable
- Can marker be dragged?public LatLon getPosition()
public void setPosition(LatLon position)
position
- The new position of the marker.public String getCaption()
public void setCaption(String caption)
caption
- The new caption of the marker.public boolean isDraggable()
public void setDraggable(boolean draggable)
draggable
- Set to true to enable dragging.public String getIconUrl()
public void setIconUrl(String iconUrl)
iconUrl
- The new url of the icon.public boolean isAnimationEnabled()
public void setAnimationEnabled(boolean animationEnabled)
animationEnabled
- Set true to enable (default true).public boolean isOptimized()
public void setOptimized(boolean optimized)
optimized
- Set true to enable (default true).public long getIdentifier()
public void setIdentifier(long id)
public boolean hasSameFieldValues(GoogleMapMarker other)
Copyright © 2020 Flowing Code. All rights reserved.