GetPreview

Map preview for the printout bundle

Parameters

Name Type Description Required?
mapLayers String Comma separated layer ids **true**
coord String Coordinates separated with a `_` character **true**
zoomLevel String **true**
geojson JSON Geometries in GeoJSON format false
format String Accepts `application/pdf` (which it defaults to) and `image/png` false
pageSize String Page size in ISO 216 format (eg. A4) false
pageTitle String Title of the page false

Response

Success

Returns the map view defined in params in the format also defined in params.

Error

Examples

Example query for Paikkatietoikkuna

http://www.paikkatietoikkuna.fi/web/fi/kartta?p_p_id=Portti2Map_WAR_portti2mapportlet&p_p_lifecycle=2&zoomLevel=9&coord=384582_6671743&mapLayers=base_35+100+&showMarker=false&forceCache=true&noSavedState=true&action_route=GetPreview&pageSize=A4&pageTitle=&pageLogo=true&pageScale=true&pageDate=true&format=application/pdf


Frontista lähtee parametreja (esim. pageSize ja pageTitle) joita GetPreviewHandler-luokka ei huomioi.

Last modified: Thu Nov 10 2022 13:59:32 GMT+0200 (Eastern European Standard Time)