Adding GTileLayer

Feb 24, 2011 at 12:06 PM

Hi,

I'm trying to add a new Tile Layer to the control. The Javascript equivilant would be:

    function addLayer() {
        var map = new GMap2(document.getElementById("map_canvas"));
        var tileLayerOverlay = new GTileLayerOverlay(
            new GTileLayer(null, null, null, { tileUrlTemplate: 'http://tiles/{Z}/{X}/{Y}.png', isPng: true, opacity: 1.0 })
        );
        map.addOverlay(tlo);
    }

 

But there doesn't seem to be any methods for adding extra layers using the GoogleMap control. I'm happy to leave it in Javascript but need to know how to fire it from the control. Any help would be appreciate - the control is a great time saver by the way.

Thanks.