@Saneef - Please help to elaborate this a bit more. The implementation code doesn't exactly allow for plug-and-play, as features and borders had to be drawn from from two separate data sources. I would expect people wish to supply one map data set. Also, I am not entirely sure what is going on with 'position'. That is, I get that it uses the municipalities polygon data to calculate a center point on which to draw the circle. However all the code here to identify each municipality by property name and then to return the centroid calculation - this seems to be asking a lot of people. Can we offer an example that does this 'automatically' from the implementation code alone?
Sorry to scare you. "Curse of knowledge" of the creator. I have changed the first example. Is it less scary and understandable?
I'll see and add feature for non-overlapping bubbles (force simulation). It will be opt-in as it may not be suitable for some uses and it is a bit slow to render.
I agree with your note data and formats. I'm think, we should have a note book on how prepare data (array of objects,...), geojson (winding order,...), csv (auto typing)
Thank you for adding this feature :) I'll play around more. The Tanahu example doesn't render well on the phone, while the Bangalore example does. Any ideas?
Tanahu doesn't really look all that pretty. Should we try to swap this out for another area, like Khotang, Solukhumbu, or Okhaldhunga? Also, can we format the numbers so they show a comma in the thousands?
There was couple of problems with the data, https://observablehq.com/@adb/bubble-map#population_srilanka, causing to return undefined for position. I have commented in the cell. The function for avoid overlapping needing position need position. Can't filter out those values blindly. Need to think on how to do these kind of error handling.
How did you get this? I keep failing with my attempts on Overpass Turbo. I can get Bangalore using the following:
```
[out:json];
relation["name:en"="Bengaluru"]
["boundary"="administrative"]
({{bbox}});
out body;
>;
out skel qt;
```
I use QGIS. ;) Easier for me. Sometimes I smoothen, and edits.
This is the generated query in QGIS:
```
[out:xml] [timeout:25];
(
node["boundary"="administrative"]["admin_level"="8"]["name:en"="Bengaluru"]( {{bbox}});
way["boundary"="administrative"]["admin_level"="8"]["name:en"="Bengaluru"]( {{bbox}});
relation["boundary"="administrative"]["admin_level"="8"]["name:en"="Bengaluru"]( {{bbox}});
);
(._;>;);
out body;
```