dmachat / angular-datamaps

Angular directive for d3 Datamaps
MIT License
60 stars 30 forks source link

Load the map from geojson file #9

Closed mohasakho closed 9 years ago

mohasakho commented 9 years ago

Hi, how can i change this directive to load the map from the controller by using geojson file?

priyank2005 commented 9 years ago

I have been struggling with the same.. Any leads?

dmachat commented 9 years ago

I've made changes to the directive api in the latest release of angular-datamaps to better match the map the api for the Datamaps library. You should be able to use geographyConfig.dataUrl to set an external topojson file as detailed in the Datamaps documentation.