/*! * * iclient9-mapboxgl.(http://iclient.supermap.io) * Copyright© 2000-2017 SuperMap Software Co. Ltd * license: Apache-2.0 * version: v9.0.0 * */ !function(e){function t(i){if(n[i])return n[i].exports;var a=n[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(e,t){e.exports=mapboxgl},function(e,t){e.exports=function(){try{return mapv}catch(e){return{}}}()},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0;var o=function(){function e(e,t){for(var n=0;n"+n+"",this._createStyleSheet(),this._container}},{key:"_createStyleSheet",value:function(){var e=document.createElement("style");e.type="text/css",e.innerHTML=".iclient-logo{margin:0 !important;}.iclient-logo a{border: none;display: block;height:31px;}.iclient-logo img{border: none;white-space: nowrap}",document.getElementsByTagName("head")[0].appendChild(e)}},{key:"_extend",value:function(e){var t=!0,n=!1,i=void 0;try{for(var a,o=arguments[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var r=a.value;for(var s in r)e[s]=r[s]}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}return e}}]),e}();r.default.supermap=r.default.supermap||{},r.default.supermap.LogoControl=l},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.MapvLayer=void 0;var o=function(){function e(e,t){for(var n=0;n"+(this.legendTitle||"")+"

";for(var n="",t+n+i}},{key:"_appendLegendCSSStyle",value:function(){var e=document.createElement("style");e.type="text/css",e.innerHTML=" .legend {\n display: inline-block;\n padding: 4px 10px;\n border-radius: 2px;\n -moz-border-radius: 2px;\n -webkit-border-radius: 2px;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.8);\n background-color: rgb(255, 255, 255);\n }\n .legend-light {\n color: rgba(0, 0, 0, 0.8);\n background-color: rgb(255, 255, 255);\n }\n .legend-dark {\n color: rgba(255, 255, 255, 0.8);\n background-color: rgb(64, 64, 64);\n }\n .legend ul {\n clear: both;\n overflow: auto;\n padding: 0;\n margin: 0;\n height: 100%;\n display: block;\n list-style: none;\n box-sizing: border-box;\n -webkit-font-smoothing: antialiased;\n }\n .legend li {\n float: left;\n width: 50px;\n height: 28px;\n overflow: hidden;\n text-overflow: clip;\n padding: 0 4px;\n line-height: 28px;\n }\n .legend .legend-title {\n min-height: 14px;\n max-width: 500px;\n margin: 4px 0;\n }\n .legend-light .legend-title {\n color: rgba(0, 0, 0, 0.8);\n }\n .legend-dark .legend-title {\n color: rgba(255, 255, 255, 0.8);\n }",document.getElementsByTagName("head")[0].appendChild(e)}},{key:"_getWrapperText",value:function(e){var t=parseFloat(e);return t%1e6<=1e6?t.toString():parseInt(t/1e3)+"k"}},{key:"_addLayer",value:function(){var e=this._getPaintOptions(),t=this.id?this.id:"rankTheme",n=t+"Source";this.map.getSource(n)?(this.map.removeSource(n),this.map.addSource(n,{type:"geojson",data:this.data})):this.map.addSource(n,{type:"geojson",data:this.data}),this.map.addLayer({id:t,type:"fill-extrusion",source:n,paint:e},t),this.map.moveLayer(t)}},{key:"_getPaintOptions",value:function(){var e=null==this.opacity?1:this.opacity;e=isNaN(parseFloat(e))?1:parseFloat(e);var t=/^[0-9]+.?[0-9]*$/,n={"fill-extrusion-color":{stops:this.colorStops,property:this.colorField||this.heightField,base:t.test(this.base)?this.base:1},"fill-extrusion-opacity":e};return this.heightStops?n["fill-extrusion-height"]={stops:this.heightStops,property:this.heightField||"height",base:t.test(this.base)?this.base:1}:n["fill-extrusion-height"]={property:this.heightField||"height",type:"identity"},this.baseHeightField&&(n["fill-extrusion-base"]={property:this.baseHeightField,type:"identity"}),n}},{key:"_extend",value:function(e){var t=!0,n=!1,i=void 0;try{for(var a,o=arguments[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var r=a.value;for(var s in r)e[s]=r[s]}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}return e}}]),e}();o.default.supermap=o.default.supermap||{},o.default.supermap.RankTheme3DLayer=r},function(e,t,n){"use strict";function i(e,t,n,i,a){return{id:e,type:t,source:n||"vector-tiles","source-layer":i||e,paint:a}}Object.defineProperty(t,"__esModule",{value:!0}),t.setPaintProperty=t.setBackground=t.getDefaultVectorTileStyle=void 0;var a=function(e){return e&&e.__esModule?e:{default:e}}(n(0));a.default.supermap=a.default.supermap||{},a.default.supermap.map=a.default.supermap.map||{};var o=t.getDefaultVectorTileStyle=function(e,t){t=t||{};var n={};n.version=t.version||8,n.layers=t.layers||[],n.light=t.light||{anchor:"viewport",color:"#fcf6ef",intensity:.5,position:[1.15,201,20]};var i={version:n.version,sources:{"vector-tiles":{type:"vector",tiles:[e]}},layers:n.layers,light:n.light};return null!=t.sprite&&(i.sprite=t.sprite),null!=t.glyphs&&(i.glyphs=t.glyphs),i},r=t.setBackground=function(e,t){t&&e&&e.addLayer({id:"background",type:"background",paint:{"background-color":t}},"background")},s=t.setPaintProperty=function(e,t,n,a,o,r){if(t&&e){"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);for(var s=0;st.options.maxZoom)){var r={transferCoordinate:function(e){var t=a.project(new window.mapboxgl.LngLat(e[0],e[1]));return[t.x,t.y]}};void 0!==e&&(r.filter=function(t){var i=n.trails||10;return e&&t.time>e-i&&t.time