support for displaying polygons in minimap

We have javascript logging now so you could replace the console.log with `log.debug(...)`. It will get sent to the server-side and we can know when people encounter invalid geoms.