This class is used to create an svg icon for a route note
The constructor
Get the svg and the data needed for creating the icon, using an async function
Name | Type | Description |
---|---|---|
iconLatLng | Array of Number | The latitude and longitude of the icon |
route | Route | The route to witch the icon will be attached. |
Get the svg and the data needed for creating the icon, using a promise
Name | Type | Description |
---|---|---|
mapIconData | MapIconData | An object with the latLng of the note and a reference to the Route for witch the icon is build |
The ComputeData object needed to buid the note
The NoteDataForMapIcon object needed to buid the note
An OverpassAPIDataLoader object used to search the osm data
The distance used to search cities and hamlet in osm
A guard to avoid to mutch requests at the same time
A constant used for searching the OSM data
Search and build all the needed data
Start the buid of the note data
The method used to buid the icon with a Promise
Name | Type | Description |
---|---|---|
onOk | Function | The onOk handler of the Promise |
onError | Function | The onError handler of the Promise |
This method search the nearest itinerary point from the point given by the user