Skip to content

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

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, if not specified geometry bbox is used. 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