Skip to content

Print API

javi santana edited this page Dec 2, 2013 · 7 revisions

print api allows to export a map to be printed

quick start

1.- create a layergroup (see multilayer api document https://github.com/CartoDB/Windshaft/wiki/Multilayer-API)

2.- 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
  • widthand height 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

todo

  • support bbox in EPSG: 4326
  • allow more params
  • proper param check
  • testing
Clone this wiki locally