Search:
The constructor
This method compute the rotation needed to have the SVG oriented on the itinerary and compute also the direction to take after the icon
Name | Type | Description |
---|---|---|
computeData | ComputeDataForMapIcon | The object with the data needed for the computations |
noteData | NoteDataForMapIcon | The object with the nota data |
A reference to the computeData object of the MapIconFromOsmFactory
A reference to the itineraryPoint used to compute the direction
A reference to the noteData Object of the MapIconFromOsmFactory
A reference to the itineraryPoint used to compute the rotation
Transform the latLng of the icon ro pixel coordinates relative to the map origin
This method compute the translation needed to have the itinerary point in the middle of the svg
Computing direction ... if possible
Searching a point at least at 10 m ( theConfig.note.svgIcon.angleDistance ) from the icon point for direction
Search if the icon is at the start or the end of the route and adapt data
Computing rotation... if possible
Searching a point at least at 10 m ( theConfig.note.svgIcon.angleDistance ) from the icon point for rotation