markmarkoh / datamaps

Customizable SVG map visualizations for the web in a single Javascript file using D3.js
http://datamaps.github.io
MIT License
3.78k stars 1.01k forks source link

How can i use only one map of specific country? #281

Closed gnumoksha closed 8 years ago

gnumoksha commented 8 years ago

When i include "dist/datamaps.bra.js" i received the error: TypeError: data.objects is undefined

markmarkoh commented 8 years ago

@gnumoksha 'bra' needs to be set as the scope manually, and a custom projection needs to be applied to zoom into the right area (otherwise it appears very small):

Example: http://jsbin.com/mukaderale/edit?html,js,output

screenshot 2016-03-21 11 15 20

gnumoksha commented 8 years ago

Thank you very much!

ahasanhub commented 2 years ago

I cann't generate bangladesh topo json