我们如何将GTileLayerOverlay与GTileLayer转换为Gmap v3?

时间:2013-12-05 08:22:53

标签: google-maps google-maps-api-3

function createOverlay(){
    var cRight = new GCopyrightCollection('Rithy 2010');
    var newLayer = new GTileLayer(cRight,11,13);
    newLayer.getOpacity = function () {return 0.2};

    if (this.minZoom) {
    newLayer.minResolution = function(){return this.minZoom};
    }
    if (this.maxZoom) {
    newLayer.maxResolution = function(){return this.maxZoom};
    }

    var newOverlay = new GTileLayerOverlay(newLayer);
    return newOverlay;

}

我的问题与Convert this from Google Maps API v2 to v3

类似

我被困了几天。 请帮帮我!

0 个答案:

没有答案