Custom Modules and the Google Maps API KML Layer

I have placed the .kml files on GitHub.

I have commented out the code that reads the .kmls from the Treepl Site, added a couple of extra lines to parse the Custom Module .kml path and build the path to file stored on GitHub.

It works.

That way I don’t have to edit data when Treepl finally supports .kmls. I only have to delete 3 lines of code & remove some comments.

Just have to remember to store the .kml file in 2 locations.

1 Like