public class GeoJsonFeature extends Feature implements java.util.Observer
| Constructor and Description |
|---|
GeoJsonFeature(Geometry geometry,
java.lang.String id,
java.util.HashMap<java.lang.String,java.lang.String> properties,
LatLngBounds boundingBox)
Creates a new GeoJsonFeature object
|
| Modifier and Type | Method and Description |
|---|---|
LatLngBounds |
getBoundingBox()
Gets the array containing the coordinates of the bounding box for the feature.
|
GeoJsonLineStringStyle |
getLineStringStyle()
Returns the style used to render GeoJsonLineStrings
|
MarkerOptions |
getMarkerOptions()
Gets a MarkerOptions object from mPointStyle containing styles for the GeoJsonPoint
|
GeoJsonPointStyle |
getPointStyle()
Returns the style used to render GeoJsonPoints
|
PolygonOptions |
getPolygonOptions()
Gets a PolygonOptions object from mPolygonStyle containing styles for the GeoJsonPolygon
|
GeoJsonPolygonStyle |
getPolygonStyle()
Returns the style used to render GeoJsonPolygons
|
PolylineOptions |
getPolylineOptions()
Gets a Polyline object from mLineStringStyle containing styles for the GeoJsonLineString
|
java.lang.String |
removeProperty(java.lang.String property)
Removes a given property
|
void |
setGeometry(Geometry geometry)
Sets the stored Geometry and redraws it on the layer if it has already been added
|
void |
setLineStringStyle(GeoJsonLineStringStyle lineStringStyle)
Sets the style used to render GeoJsonLineStrings
|
void |
setPointStyle(GeoJsonPointStyle pointStyle)
Sets the style used to render GeoJsonPoints
|
void |
setPolygonStyle(GeoJsonPolygonStyle polygonStyle)
Sets the style used to render GeoJsonPolygons
|
java.lang.String |
setProperty(java.lang.String property,
java.lang.String propertyValue)
Store a new property key and value
|
java.lang.String |
toString() |
void |
update(java.util.Observable observable,
java.lang.Object data)
Update is called if the developer modifies a style that is stored in this feature
|
getGeometry, getId, getProperties, getProperty, getPropertyKeys, hasGeometry, hasProperties, hasPropertypublic GeoJsonFeature(Geometry geometry, java.lang.String id, java.util.HashMap<java.lang.String,java.lang.String> properties, LatLngBounds boundingBox)
geometry - type of geometry to assign to the featureid - common identifier of the featureproperties - hashmap of containing properties related to the featureboundingBox - bounding box of the featurepublic java.lang.String setProperty(java.lang.String property,
java.lang.String propertyValue)
setProperty in class Featureproperty - key of the property to storepropertyValue - value of the property to storepublic java.lang.String removeProperty(java.lang.String property)
removeProperty in class Featureproperty - key of the property to removepublic GeoJsonPointStyle getPointStyle()
public void setPointStyle(GeoJsonPointStyle pointStyle)
pointStyle - style used to render GeoJsonPointspublic GeoJsonLineStringStyle getLineStringStyle()
public void setLineStringStyle(GeoJsonLineStringStyle lineStringStyle)
lineStringStyle - style used to render GeoJsonLineStringspublic GeoJsonPolygonStyle getPolygonStyle()
public void setPolygonStyle(GeoJsonPolygonStyle polygonStyle)
polygonStyle - style used to render GeoJsonPolygonspublic PolygonOptions getPolygonOptions()
public MarkerOptions getMarkerOptions()
public PolylineOptions getPolylineOptions()
public void setGeometry(Geometry geometry)
setGeometry in class Featuregeometry - Geometry to setpublic LatLngBounds getBoundingBox()
public java.lang.String toString()
toString in class java.lang.Objectpublic void update(java.util.Observable observable,
java.lang.Object data)
update in interface java.util.Observerobservable - GeoJsonStyle objectdata - null, no extra argument is passed through the notifyObservers method