Build the html page for print
The constructor
Name | Type | Description |
---|---|---|
route | Route | A reference to the printed route |
printViews | Array of PrintView | A reference to the views to print |
printRouteMapOptions | PrintRouteMapOptions | A reference to the PrintRouteMapOptions object containing the user choices |
Remove the print views and restore the map and user interface after printing
Hide existing HTMLElements, add the toolbar, prepare the polyline and add the views to the html page
Event listener for the cancel button and the document. Reset the document in the correct state
The cancel button on the toolbar
The print button on the toolbar
A reference to the PrintRouteMapOptions object containing the user choices
The toolbar on right top of the screen
A reference to the printed route
A leaflet.polyline used to represent the route on the maps
A counter for the views, so we can gives a unique id to the views
An array with the HTML views
Creates the toolbar with the print and cancel button
Creates a print view
Name | Type | Description |
---|---|---|
printView | PrintView | The view to create |
Creates a leaflet layer with the same map that the main map
Creates markers for notes