-
Notifications
You must be signed in to change notification settings - Fork 81
Print API
javi santana edited this page Dec 2, 2013
·
7 revisions
print api allows to export a map to be printed
-
create a layergroup (see multilayer api document https://github.com/CartoDB/Windshaft/wiki/Multilayer-API)
-
with the layergroup execute:
curl http://windsahft_host.com/tiles/layergroup/:layergroup_id/print.png?width=:width_in_pixels&height=:height_in_pixels&bbox=minx,miny,maxx,maxy
-
width
andheight
params are mandatory, in pixels and should be greater than 0 -
bbox
is optional and limit the printed area. The reference system is web mercator EPSG:3857
- support bbox in EPSG: 4326
- allow more params
- proper param check
- testing