App controler
Methods
-
changeScale(scale){undefined}
vmap/tools/print.js, line 374 -
Change the map scale for the print-zone
Name Type Description scalenumber -
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 canvasobject canvas from the map
overlayCanvasobject canvas from the overlay
widthnumber heightnumber formatstring 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 templateobject -
loadModelParmas(modelIndex){undefined}
vmap/tools/print.js, line 447 -
Load the model params
Name Type Description modelIndexnumber 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 optionsName Type Description sizearray.<number> [width, height]
scopeobject scalenumber formatstring (a3|a4)
orientationstring (portrait|landscape)
extentol.Extent resolutionnumber print detail level
templateUrlstring featuresarray.<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 aFeaturesarray.<ol.Feature> Array of features
sizearray.<number> view size