Handy glue code for OpenLayers