Visualize My Own Data using MarkerCluster #242
-
Hi. I have tried your code using your sample data, and it can run successfully. However, when I try to use another data to the code, there are several problems show up. First, my data format is not the same as yours, so I have to reformat my data so I can get the same format as yours. I use the data from Nasa about the hotspot located in certain areas in Indonesia. Below is the download link: I use this code, so I can reformat the data, and get the same format as yours, even though I only create the code to get the coordinates information.
This problem has been solved. Second, I run the code of MarkerCluster, and get the same result as yours when I printed it. However, when I try to visualize the data using Map.add_layer, it didn't show up, while the format of my result and your result is the same. Thanks for the attention. I hope we can discuss this problem together. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your dataset is not formatted correctly as a GeoJSON, and that's why it does not show up on the map. A GeoJSON file looks like the one below. See this sample dataset.
|
Beta Was this translation helpful? Give feedback.
Your dataset is not formatted correctly as a GeoJSON, and that's why it does not show up on the map. A GeoJSON file looks like the one below. See this sample dataset.