Convert TOPOJSON to SVG
Turn TOPOJSON files into SVG. A picture of the map as SVG, 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 TopoJSON map as a plain SVG picture.Polygons, lines and points are drawn on white, each layer in its own color.
What you get
One SVG picture of the map, 1024 pixels wide unless that would make it taller than 4096. The background is white.
Polygons are lightly filled and outlined. Lines are drawn as lines, and points are drawn 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 the borders is not kept.
What is left out
Attributes and labels are not drawn, so names and other properties from the file do not appear on the picture. The file's own styles are ignored, and no base map is drawn under the shapes.
TOPOJSON and SVG.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
SVG
Scalable vector graphics in XML. Logos, icons and diagrams that stay sharp at any size.
- Extensions
- .svg .svgz
- MIME type
- image
/svg +xml - Kind
- Images
In your code.The same TOPOJSON to SVG conversion through the API, for your app or your agent.
$ cv convert report.topojson report.svg$ cv convert report.topojson report.svgQuestions.What people ask about TOPOJSON to SVG.
It is 1024 pixels wide. If that would make it taller than 4096, the size is adjusted so it is not.
Yes. Each layer is drawn in its own color.
No. Attributes and labels are not drawn, so the picture holds shapes only.
No. A base map is not drawn. The shapes sit on a white background.