App controler
Methods
-
changeScale(scale){undefined}
vmap/tools/print.js, line 374 -
Change the map scale for the print-zone
Name Type Description scale
number -
getLegend(){string}
vmap/tools/print.js, line 966 -
Get the legend to include in the pdf
Returns:
Modified HTML from legend
-
getMapImageSrc(canvas, overlayCanvas, width, height, format){string}
vmap/tools/print.js, line 1153 -
Get the image from the map (including the overlay)
Name Type Description canvas
object canvas from the map
overlayCanvas
object canvas from the overlay
width
number height
number format
string image format (jpeg/png)
Returns:
Map Base64 image
-
getOverviewMapSrc(){String}
vmap/tools/print.js, line 1197 -
Get the map overview image source
Returns:
Base64 map overview image
-
getTemplateMapSize(template){Array|Number}
vmap/tools/print.js, line 509 -
Get the size on the map on the template
Name Type Description template
object -
loadModelParmas(modelIndex){undefined}
vmap/tools/print.js, line 447 -
Load the model params
Name Type Description modelIndex
number index in properties.models
-
managePrintZone(){Number}
vmap/tools/print.js, line 264 -
Detach the printZone from the view and allow to translate it
-
prepareAndLaunchPrint(){undefined}
vmap/tools/print.js, line 596 -
Prepare the print params and launch it
-
print(opt_options){undefined}
vmap/tools/print.js, line 663 -
Run the printing process
Name Type Description options
Name Type Description size
array.<number> [width, height]
scope
object scale
number format
string (a3|a4)
orientation
string (portrait|landscape)
extent
ol.Extent resolution
number print detail level
templateUrl
string features
array.<ol.Feature> feature to select and zoom on
-
removePrintTools(){undefined}
vmap/tools/print.js, line 1224 -
Remove all changes maked during the printing
-
renderOverviewMap(){String}
vmap/tools/print.js, line 879 -
Render the overview
-
zoomOnFeatures(aFeatures, size){undefined}
vmap/tools/print.js, line 726 -
Zoom on the features
Name Type Description aFeatures
array.<ol.Feature> Array of features
size
array.<number> view size