MapModel
Extends:
Class for the Map model which controls the map view and the markers.
Constructor Summary
| Public Constructor | ||
| public |
Creates an instance of the MapModel |
|
Member Summary
| Public Members | ||
| public |
Returns the data from the model. |
|
| public |
Returns the user's current location. |
|
| public |
Opens the prompt to get the user to pick a third-party app to get directions from. |
|
| public |
update: * Updates the map model data by inserting the data as markers |
|
| Private Members | ||
| private |
_data: *[] |
|
| private |
_insertDataOnRead(newData: Object): * Inserts an object with a list of objects into the map model as new data. |
|
Method Summary
| Public Methods | ||
| public |
createMarker(markerElement: Object): Object Creates a marker from provided data. |
|
Public Constructors
Public Members
public showMaps(destination: Object): * source
Opens the prompt to get the user to pick a third-party app to get directions from. Default source location is the user's current location.
Reference
Source
