public class LMarker extends Object implements LComponent
| Constructor and Description |
|---|
LMarker(double lat,
double lon)
Creates a new Marker at the latitude, longitude
|
LMarker(double lat,
double lon,
String tag) |
| Modifier and Type | Method and Description |
|---|---|
LIcon |
getDivIcon() |
LMarkerGeometry |
getGeometry() |
LIcon |
getIcon() |
String |
getJsFunctionForAddingToMap()
Get the JavaScript Function for adding the component to a map
|
double |
getLat() |
double |
getLon() |
String |
getPopup() |
LMarkerOptions |
getProperties() |
String |
getTag() |
void |
setDivIcon(LDivIcon icon) |
void |
setGeometry(LMarkerGeometry geometry) |
void |
setIcon(LIcon icon) |
void |
setLat(double lat) |
void |
setLon(double lon) |
void |
setPopup(String popup)
Sets a Pop-up to the Marker
|
void |
setProperties(LMarkerOptions properties) |
void |
setTag(String tag) |
elemental.json.JsonObject |
toJson()
The json data for e.g.
|
public LMarker(double lat,
double lon)
lat - lon - public LMarker(double lat,
double lon,
String tag)
public LIcon getIcon()
public void setDivIcon(LDivIcon icon)
public LIcon getDivIcon()
public void setIcon(LIcon icon)
public LMarkerGeometry getGeometry()
public void setGeometry(LMarkerGeometry geometry)
public LMarkerOptions getProperties()
public void setProperties(LMarkerOptions properties)
public double getLat()
public void setLat(double lat)
public double getLon()
public void setLon(double lon)
public String getPopup()
public void setPopup(String popup)
popup - public String getTag()
public void setTag(String tag)
public elemental.json.JsonObject toJson()
LComponenttoJson in interface LComponentpublic String getJsFunctionForAddingToMap()
LComponentgetJsFunctionForAddingToMap in interface LComponentCopyright © 2019–2021 XDEV Software. All rights reserved.