Dear Observable Community,
I would like to learning how to add groups of vector data (stored as kml file) to a Google map so that it can be clicked on and off through a user interface. Bram Van den Bulcke created a tutorial showing how to accomplish this with Google Maps. I am currently struggling to port the example to Observable.
Bram’s working web example using Kml layers is available here. My attempt to port it to Observable (based on Tom’s example) is here:
The map is working and I am not getting error message with the JavaScript code. On the face of it, everything appears connected in the same way as in Bram’s example, yet the HTML toggles don’t effect any changes in the map.
I assume that I am missing some connection between the HTML toggles and the JavaScript. Would you be willing to show me how to accomplish this?
Thanks in advance for your time and guidance!
Sincerely,
Aaron