import MapPresenter from 'PedalPatrol/src/components/presenters/map-presenter.js'
MapPresenter
Extends:
Class for the Map Presenter.
Constructor Summary
Public Constructor | ||
public |
Creates an instance of the MapPresenter. |
Member Summary
Public Members | ||
public |
|
|
public |
forceRefresh: * Force the view/presenter to refresh the view's data |
|
public |
Returns the data from the MapModel. |
|
public |
Get the number of notifications from the Alerts model. |
|
public |
getProfileImage(callback: Function): * Get the profile picture from the profile model |
|
public |
Gets the user's current location from the model. |
|
public |
onDestroy: * If the view or presenter is destroyed, unsubscribe the presenter from the model. |
|
public |
onUpdated: * onUpdated only called from HomeModel because MapModel doesn't call it. Since data in MapModel should be the same as the from the HomeModel, we don't have to read from the database in the MapModel and we can just wait for data to be received. |
|
public |
view: * |
Method Summary
Private Methods | ||
private |
|
Public Constructors
Public Members
public filterMarkers: * source
public getNotificationCount: Number: * source
Get the number of notifications from the Alerts model.
public onDestroy: * source
If the view or presenter is destroyed, unsubscribe the presenter from the model.
public onUpdated: * source
onUpdated only called from HomeModel because MapModel doesn't call it. Since data in MapModel should be the same as the from the HomeModel, we don't have to read from the database in the MapModel and we can just wait for data to be received.