public class MarkerPlace extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
MarkerPlace.Property |
Constructor and Description |
---|
MarkerPlace()
Creates new MarkerPlace object.
|
MarkerPlace(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LatLng |
getLocation()
Returns value of location property.
|
java.lang.String |
getPlaceId()
Returns value of placeId property.
|
java.lang.String |
getQuery()
Returns value of query property.
|
void |
setLocation(LatLng value)
Sets new value for location property.
|
void |
setPlaceId(java.lang.String value)
Sets new value for placeId property.
|
void |
setQuery(java.lang.String value)
Sets new value for query property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public MarkerPlace()
@Deprecated public MarkerPlace(Map map)
map
- owner Map objectpublic LatLng getLocation()
Contains the LatLng of the entity described by this Place. This must be provided for the Place to be considered valid.
setLocation(com.teamdev.jxmaps.LatLng)
public void setLocation(LatLng value)
value
- new property valuegetLocation()
public java.lang.String getPlaceId()
Contains the place ID of the place (such as a business or point of interest). The place ID is a unique identifier of a place in the Google Maps database. Note that the placeId is the most accurate way of identifying a place. If possible, you should specify the placeId rather than a placeQuery. A place ID can be retrieved from any request to the Places API, such as a TextSearch. Place IDs can also be retrieved from requests to the Geocoding API.
setPlaceId(java.lang.String)
public void setPlaceId(java.lang.String value)
value
- new property valuegetPlaceId()
public java.lang.String getQuery()
Contains a search query describing the place (such as a business or point of interest). An example query would be "Quay, Upper Level, Overseas Passenger Terminal 5 Hickson Road, The Rocks NSW". If possible, you should specify the placeId rather than a placeQuery. The API does not guarantee the accuracy of resolving the query string to a place. If both the placeId and placeQuery are provided, an error is thrown.
setQuery(java.lang.String)
public void setQuery(java.lang.String value)
value
- new property valuegetQuery()