Convert TOPOJSON to PNG
Turn TOPOJSON files into PNG. A picture of the map as PNG, 1024 pixels wide unless it would be taller than 4096, on white: polygons lightly filled and outlined, lines drawn and points as dots, each layer in its own color.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop TOPOJSON files on the dialor turn it to pick what to do
A picture of your map as a PNG.Polygons, lines and points drawn on white, each layer in its own color.
What you get
One PNG of the map, 1024 pixels wide. If that would make it taller than 4096 pixels, the width is reduced to fit.
Polygons are lightly filled and outlined. Lines are drawn as lines, and points as dots. Each layer gets its own color, so you can tell the layers apart.
How the map is drawn
Longitude and latitude are drawn in Web Mercator, as web maps show them. Other coordinates are drawn as they are.
Shapes are simplified to half a pixel, so very fine detail in borders can be smoothed out.
What is left out
Attributes and labels are not drawn, so the picture has no place names. The styles stored in the TopoJSON file are not used, and there is no base map under the shapes. The background is plain white.
TOPOJSON and PNG.What each format is.
The formats
TopoJSON
TopoJSON, GeoJSON's compact cousin that shares borders between shapes, as D3 maps use it.
- Extensions
- .topojson
- MIME type
- application
/topo +json - Kind
- Text and data
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
In your code.The same TOPOJSON to PNG conversion through the API, for your app or your agent.
$ cv convert report.topojson report.png$ cv convert report.topojson report.pngQuestions.What people ask about TOPOJSON to PNG.
No. Labels and attributes are not drawn. The PNG shows only the shapes.
No. The shapes are drawn on white, with no base map behind them.
No. The file's own styles are not drawn. Each layer gets its own color instead.
Longitude and latitude are drawn in Web Mercator, as web maps show them. Other coordinates are drawn as they are.