This class contains all the needed methods fot Notes creation or modifications See theNoteEditor for the one and only one instance of this class
Get the status of the osmSearchNoteDialog flag
This method transform a travel note into a route note. The nearest point on a route is selected for the note
Name | Type | Description |
---|---|---|
noteObjId | Number | The objId of the note |
Change the status of the osmSearchNoteDialog flag
This method transform a route note into a travel note.
Name | Type | Description |
---|---|---|
noteObjId | Number | The objId of the note |
This method start the edition of a note
Name | Type | Description |
---|---|---|
noteObjId | Number | The objId of the note to be edited |
This method hide all notes on the map. The notes are always visible in the roadbook and UI
This method add a route note.
Name | Type | Description |
---|---|---|
routeObjId | Number | ObjId of the route to witch the note will be attached |
latLng | Array of Number | The lat and lng of the point selected by the user |
This method add a route note for a searh result from osm.
Name | Type | Description |
---|---|---|
osmElement | OsmElement | An object with osm data ( see OsmSearch...) |
This method add a travel note for a searh result from osm.
Name | Type | Description |
---|---|---|
osmElement | OsmElement | An object with osm data ( see OsmSearch...) |
This method add a travel note
Name | Type | Description |
---|---|---|
latLng | Array of Number | The latitude and longitude of the note |
This method add a travel note at the lat and lon given as url parameters
Name | Type | Description |
---|---|---|
latLng | Array of Number | The latitude and longitude of the note |
This method remove a note
Name | Type | Description |
---|---|---|
noteObjId | Number | The objId of the note to be removed |
This method is called when a note is dropped in the TravelNotesPaneUI and then notes reordered.
Name | Type | Description |
---|---|---|
draggedNoteObjId | Number | The objId of the dragged note |
targetNoteObjId | Number | The objId of the note on witch the drop was executed |
draggedBefore | Boolean | When true the dragged note is moved before the target note when false after |
A flag indicating when the note is created or edited
The route to witch the created or edited note is linked
A flag indicating when the note dialog is show when creating a search note Must be set to null at the startup because theConfig is perhaps not initialized
This method add or update a note to theTravelNotesData and to the map
This method construct a new Note object
Name | Type | Description |
---|---|---|
latLng | Array of Number | The latitude and longitude of the note |
This method add a note for a searh result from osm.
Name | Type | Description |
---|---|---|
osmElement | OsmElement | An object with osm data ( see OsmSearch...) |
This method show the Note dialog and then add or update the note