James Croft

Using Google Map tiles with Leaflet

I recently came across this plugin that allows you to use Google Map tiles with the Leaflet mapping library.

I’ve made a couple of small tweaks to the script so that it still works with HTML5 doctypes. You can get the modified version here.

You can see the code for a working example here.