public class PlaceGeometry extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
PlaceGeometry.Property |
Constructor and Description |
---|
PlaceGeometry()
Creates new PlaceGeometry object.
|
PlaceGeometry(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LatLng |
getLocation()
Returns value of location property.
|
LatLngBounds |
getViewport()
Returns value of viewport property.
|
void |
setLocation(LatLng value)
Sets new value for location property.
|
void |
setViewport(LatLngBounds value)
Sets new value for viewport property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public PlaceGeometry()
@Deprecated public PlaceGeometry(Map map)
map
- owner Map objectpublic LatLng getLocation()
Contains the Place's position.
setLocation(com.teamdev.jxmaps.LatLng)
public void setLocation(LatLng value)
value
- new property valuegetLocation()
public LatLngBounds getViewport()
Contains the preferred viewport when displaying this Place on a map. This property will be null if the preferred viewport for the Place is not known.
setViewport(com.teamdev.jxmaps.LatLngBounds)
public void setViewport(LatLngBounds value)
value
- new property valuegetViewport()