Class SvgBuilder

This class is used to create the svg for a map icon

Source : file core/mapIcon/SvgBuilder.js at line 35

Constructor

new SvgBuilder ( )

The constructor

Source : file core/mapIcon/SvgBuilder.js at line 234

Public methods

buildSvg ( computeData, noteData, overpassAPIDataLoader )

This method build the SVG element for the icon

Source : file core/mapIcon/SvgBuilder.js at line 245

Parameters

Name Type Description
computeData ComputeDataForMapIcon

The object with the data needed for the computations

noteData NoteDataForMapIcon

The object with the nota data

overpassAPIDataLoader OverpassAPIDataLoader

The OverpassAPIDataLoader object containing the data found in OSM

Private properties

#computeData : ComputeDataForMapIcon

A reference to the computeData object of the MapIconFromOsmFactory

Source : file core/mapIcon/SvgBuilder.js at line 42

#overpassAPIDataLoader : OverpassAPIDataLoader

A reference to the overpassAPIDataLoader of the MapIconFromOsmFactory

Source : file core/mapIcon/SvgBuilder.js at line 49

#svgElement : SVGElement

The svg element to build

Source : file core/mapIcon/SvgBuilder.js at line 56

Private methods

#createRcnRef ( )

This method creates the SVG element for RcnRef from OSM

Source : file core/mapIcon/SvgBuilder.js at line 217

#createRoute ( )

This method create the SVG polyline for the route

Source : file core/mapIcon/SvgBuilder.js at line 81

#createSvg ( )

This method creates the svgElement

Source : file core/mapIcon/SvgBuilder.js at line 62

#createWays ( )

This method creates the SVG elements for ways from OSM

Source : file core/mapIcon/SvgBuilder.js at line 143