Closed JonahKE closed 8 years ago
Hi, can you share your geojson file? Your source code looks fine.
Here is part of the geojson file: {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"Name":"Drummond Co Inc","Address":"1000 Urban Center Dr Ste 300","City":"Birmingham","State":"AL","Phone":"(205) 945-6300","County":"Jefferson","Latitude":"33.48360731","Longitude":"-86.70488291","BusinessDescription":"Coal & Other Minerals & Ores - Wholesale","SIC":"5052001","SICDescription":"Coal & Other Minerals & Ores - Wholesale","NAICS":"423520","NAICSDescription":"Coal and Other Mineral and Ore Merchant Wholesalers","Website":"www.drummondco.com"},"geometry":{"type":"Point","coordinates":[-86.70488291,33.48360731]}}]}
Isn't just that you don't access to the features list in the GeoJson document?
Could you try to replace renderMarkers(data, $scope.map);
by renderMarkers(data.features, $scope.map);
?
Thanks. Its working now.
Hello.
Sorry I had to bother you on this project again.
@JonahKE, I want to be able to use PruneCluster with Angular 6 but PruneCluster does not have any exportable module.
Do you have any idea on how i can go about it?
I am trying to cluster geojson data using PruneCluster and the Angular leaflet directive. However, my code does not display the clusters and there are no errors in the console to help in troubleshooting. Below is the code for my controller:
Any help is highly appreciated.