Embedded Google maps
Working on the embedding of Google maps for locations. I've got myself an API key, and got the map embedding itself, but I'm having problems centring it. I initially ported a function from here to XSLT to calculate the centre of a set of coordinates, only to discover the required XPath functions are in the math namespace which is only available in XSLT 3, and I can only use this stuff with Saxon EE, so I went and implemented the same function in JavaScript.
After that, the map was displaying, and the function itself gives the right coordinates, but the result was that the desired centre position seemed to be located at the top left corner of the map div. I suspected this was something to do with the sizing of the map div; initially it's hidden, and I have to call a resize event on it when I show it in order to make the tiles fill the box, so I tried re-centring it after that, and it seems to have worked.
The next stage is to show the KML on top of the map.