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

Smaller countries don't display #345

Open dm-coding opened 8 years ago

dm-coding commented 8 years ago

Apologies if this has been bought up before.

I have created a chloropleth mostly using example code. Was very pleasant to work with!

However, the client has informed me that many smaller countries are not displaying at all and this is a matter of some concern. They are, AFAIK: Comoros, Réunion, French Polynesia, and Tonga are missing as well as Singapore.

I believe the geographies are missing entirely from datamaps.world.js. Could they have been removed for performance reasons? What would be the most expedient way to create these certain countries?

Daniel

magic890 commented 8 years ago

Have you tried to use the datamaps.world.hires.js? They should be present in that version.

cfontes commented 8 years ago

@magic890 How can one proceed to make it use the hires version while using Datamaps as a module?

I am on angular 2 and using datamaps as a module I require, I searched the source and couldn't find a scope or any way to select the hires during instantiation of the map.

Is there a way? or should I modify my node_modules and copy paste one file over the other?

Thanks! Btw datamaps is great!

magic890 commented 8 years ago

@cfontes Never tried with AngularJS 2, but I think that you should include the library using an import, like <script src="bower_components/datamaps/dist/datamaps.world.hires.js"></script> If this is the case, just use the line above, it's already the hires version.

lijulat commented 7 years ago

@magic890 I used the hires map and passed SYC(Seychelles) in the data as key. But the its still not painted with my fill colour .All larger countries are painting correctly. Any idea what could be wrong?

lijulat commented 7 years ago

@magic890 Sorry Its working. :) .. Its so small that i have to zoom in to view it.