openlayers / ol2

OpenLayers v2 - deprecated!
Other
1.47k stars 770 forks source link

openlayers 2.11, WMS tile wrong in IE10 #1202

Open wei1224hf opened 10 years ago

wei1224hf commented 10 years ago

qq20131212215740

The tile place is wrong

wei1224hf commented 10 years ago

And here's the main codes:

    ,init: function(theDiv){

    var thisObj = this;
    OpenLayers.Util.onImageLoadError = function(){
         this.src = "../file/blank.png";
    };    

    gis.tianditu.map = new OpenLayers.Map({
         div: theDiv
        ,projection: "EPSG:4326"
        ,numZoomLevels: 20
        ,panMethod: null
    });    

    var street_1 = new OpenLayers.Layer.WMTS({
        name: "天地图-街道",
        url: "http://t6.tianditu.cn/vec_c/wmts",
        format: "tiles",
        layer: "vec",
        style: "default",
        matrixSet: "c",
        opacity: 0.7,                        
        isBaseLayer: true
    });  
    gis.tianditu.map.addLayers([ street_1]);
wei1224hf commented 10 years ago

It is totaly OK in Chrome

bartvde commented 10 years ago

can you try 2.13.1 or master?