Open wei1224hf opened 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]);
It is totaly OK in Chrome
can you try 2.13.1 or master?
The tile place is wrong