| java.lang.Object | |
| ↳ | com.mapsted.map.position.MapPlotterForProperty |
Class for drawing properties on the map
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
MapPlotterForProperty(MainMapFragment mainMapFragment, Context context, MapApi mapApi)
Method to set up property plotter
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean |
hasSetup()
Method to check if property plotter is set up or not.
| ||||||||||
| boolean |
isPropertyPlotted(int propertyId)
Method to draw a property on a map.
| ||||||||||
| void | onDestroy() | ||||||||||
| synchronized void | onPositionChanged(Position position) | ||||||||||
| void | plot(int propertyId, MapApi.PlotListener listener) | ||||||||||
| void |
removePlottedProperty(int propertyId)
Method to remove the plotted property.
| ||||||||||
| final void |
setVectorElementListener(VectorElementEventListener listener)
Method to set up vector element listener.
| ||||||||||
| final void |
setVectorTileClickedListener(IMapstedVectorTileClicked listener)
Method to set up vector tile click listener
| ||||||||||
| synchronized void |
updateMapToNewPropertySet(Set<Integer> newPropertyList)
Method to update the map with a new property set
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Method to set up property plotter
| mainMapFragment | fragment that shows plotted property. |
|---|---|
| context | context of the application. |
Method to check if property plotter is set up or not.
Method to draw a property on a map. It will download and deserialize property data if needed (on a background thread).
NOTE: if not successful, a recursive task will recursively try to draw property.
| propertyId | the id of which property should be drawn. |
|---|
Method to remove the plotted property.
| propertyId | the id of property that needs to be removed. |
|---|
Method to set up vector element listener.
| listener | VectorElementEventListener Listens to users clicks on the map. |
|---|
Method to set up vector tile click listener
| listener | the vector tile click listener |
|---|
Method to update the map with a new property set
| newPropertyList | The new list of properties to be drawn. |
|---|