This is the beginnings of a new core plugin to add geospatial capabilities, building on the JSON operators that we now have in the core. It uses the libraries leaflet.js for mapping and turf.js for geospatial calculations.
Global variables access within attributes will automatically trigger a refresh if the attribute text changes, but that wasn't happening for transclusions.