Class Zoomer

This class implements a zoom command on multiple objects

Source : file core/Zoomer.js at line 36

Constructor

new Zoomer ( )

The constructor

Source : file core/Zoomer.js at line 71

Public methods

zoomToLatLng ( latLng )

Performs a zoom on a point

Source : file core/Zoomer.js at line 80

Parameters

Name Type Description
latLng Array of Number

The latitude and longitude of the point

zoomToNote ( noteObjId )

Performs a zoom on a note

Source : file core/Zoomer.js at line 89

Parameters

Name Type Description
noteObjId Number

The objId of the note on witch the zoom must be performed

zoomToPoi ( poi )

Performs a zoom on a poi (point of interest = a search result from osm)

Source : file core/Zoomer.js at line 146

Parameters

Name Type Description
poi PoiData

Poi on witch the zoom must be performed

zoomToRoute ( routeObjId )

Performs a zoom on a route

Source : file core/Zoomer.js at line 105

Parameters

Name Type Description
routeObjId Number

The objId of the route on witch the zoom must be performed

zoomToTravel ( )

Performs a zoom on a complete travel

Source : file core/Zoomer.js at line 122

Private properties

#geometry : Array of Array of Number

An array with the lat and lng of all the objects on witch the zoom have to be performed

Source : file core/Zoomer.js at line 43

Private methods

#pushNoteGeometry ( note )

This method push the latitude and longitude of a note in the #geometry array

Source : file core/Zoomer.js at line 50

Parameters

Name Type Description
note Note

The note to push

#pushRouteGeometry ( route )

This method push the latitude and longitude of a route in the #geometry array

Source : file core/Zoomer.js at line 60

Parameters

Name Type Description
route Route

The route to push