0
votes

I am trying to draw US outline in highmaps using geojson. My map is straight.

However I would like to make it curved like below link.

http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/maps/demo/us-counties/ Here is image of curved map. enter image description here

Ignore below geojson as I can't paste all here.

Here is link to paste of geojson : https://paste.fedoraproject.org/413593/. Geojson was generated using QGIS. Below is map generated by this geojson

Map generated by geojson

Here is quick link to test geojson. http://jsfiddle.net/o7u6j6ck/

> > {"type": "FeatureCollection", "features":
> > [{"type":"Feature","geometry":{"type":"Mult
> 
> iPolygon","coordinates":
1

1 Answers

1
votes

It's a matter of projections. Geojson can only deal with WGS84, which is a subset of the Mercator Projection.

The curved map you've shown is drawn using the Albers-USA projection.

You can use D3.js to play with different map projections. IIRC D3 can read from valid GeoJSON/TopoJSON and reproject it using the projection of your choice.