A simple drop-in replacement for the deprecated google.maps.drawing library
Recently, I realized that Google is officially pulling the google.maps.drawing library from the Google Maps JavaScript API. While their recommended replacement is TerraDraw, I really liked the simplicity of the old drawing library - so I decided to build my own replacement.
I put together a polyfill that works almost exactly like the original. If you have a Google Maps project that is going to break next month because of this deprecation, you can drop this library in for a quick fix instead of spending hours on a major code rewrite.
🔗 Find the code here: https://github.com/mapchannels/mcx-drawing-polyfill
🗺️ Try the live demo: https://mapchannels.github.io/mcx-drawing-polyfill/demo.html
🛠️ Find more free mapping tools: https://www.mapchannels.com/