You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
136 KiB

window.TMAP_AUTHKEY="b5311fc44ebe2d76a7738ae3b351fe28";window.T=window.T||{};(function(){ function each(t,i){for(var n in t)t.hasOwnProperty(n)&&i(t[n],n,t)}function find(t,i){if(t.length){for(var n=0;n<t.length;n++)if(i(t[n]))return t[n]}else for(var e in t)if(t.hasOwnProperty(e)&&i(t[e]))return t[e]}function first(t){for(var i in t)if(t.hasOwnProperty(i))return t[i]}function length(t){var i=0;for(var n in t)t.hasOwnProperty(n)&&i++;return i}function prepend(t,i){t.children.length?t.insertBefore(i,t.children[0]):t.appendChild(i)}T.Version="4.1.5",T.q={W:function(t,i){switch(arguments.length){case 1:return parseInt(Math.random()*t+1);case 2:return parseInt(Math.random()*(i-t+1)+t);default:return 0}}},T.Protocol={value:null,protocol:function(){var t="http",i=document.location.protocol;"https:"==i&&(t="https"),T.Protocol.value=t+"://"}},T.Protocol.protocol(),T.tk="tk="+window.TMAP_AUTHKEY+"&",T.Domain="com",T.DomainType=1,T.DomainFun=function(){1==T.DomainType?T.Domain="gov.cn":2==T.DomainType&&(T.Domain="com")},T.DomainFun(),T.w={TMAP_AUTHKEY:window.TMAP_AUTHKEY,E:T.Protocol.value+"api.tianditu."+T.Domain,e:T.Protocol.value+"api.tianditu."+T.Domain+"/v4.0/image",IPSERVER:T.Protocol.value+"map.tianditu.gov.cn/data/getCityName",R:T.Protocol.value+"api.tianditu."+T.Domain+"/apiserver/ajaxproxy?proxyReqUrl=",r:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/vec_c/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles&"+T.tk},T:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/cva_c/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles&"+T.tk},t:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&"+T.tk},Y:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&"+T.tk},U:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/img_c/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles&"+T.tk},u:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/cia_c/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles&"+T.tk},I:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&"+T.tk},i:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&"+T.tk},O:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/ter_c/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ter&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles&"+T.tk},o:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/cta_c/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cta&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles&"+T.tk},P:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/ter_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ter&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&"+T.tk},p:function(){return T.Protocol.value+"t"+T.q.W(0,7)+".tianditu."+T.Domain+"/cta_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cta&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&"+T.tk},A:["/v4.0/components.js","/v4.0/service.js","/v4.0/military.js"],a:["/v4.0/css/tianditu4.0.css"],TMAP_DEFAULT_MAPTYPES:[]},window.T_ANCHOR_TOP_LEFT="topleft",window.T_ANCHOR_TOP_RIGHT="topright",window.T_ANCHOR_BOTTOM_LEFT="bottomleft",window.T_ANCHOR_BOTTOM_RIGHT="bottomright",window.TMAP_NORMAL_MAP=null,window.TMAP_SATELLITE_MAP=null,window.TMAP_HYBRID_MAP=null,window.TMAP_TERRAIN_MAP=null,window.TMAP_TERRAIN_HYBRID_MAP=null,T.S={extend:function(t){var i,n,e,o;for(n=1,e=a