-
Notifications
You must be signed in to change notification settings - Fork 81
Print API
javi santana edited this page Feb 5, 2014
·
7 revisions
Print API allows to export a map to be printed. This is a draft not public available API
-
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, if not specified geometry bbox is used. The reference system is web mercator EPSG:3857
- support bbox in EPSG: 4326
- allow more params
- proper param check
- testing