Adapt to gmaps.js.