@@ -27,7 +27,7 @@ export default {
2727 } ,
2828 layerStyle : {
2929 type : Object ,
30- default : function ( ) {
30+ default : function ( ) {
3131 return {
3232 visible : true ,
3333 opacity : 1
@@ -91,7 +91,7 @@ export default {
9191 } ,
9292 watch : {
9393 layerStyle : {
94- handler : function ( ) {
94+ handler : function ( ) {
9595 let { vueKey, vueIndex } = this ;
9696 let layer = window . vueCesium [ this . managerName ] . findSource (
9797 vueKey ,
@@ -114,7 +114,7 @@ export default {
114114 deep : true
115115 } ,
116116 options : {
117- handler : function ( ) {
117+ handler : function ( ) {
118118 let vm = this ;
119119 let isEqual = this . $_isEqual ( vm . options , vm . optionsBack ) ;
120120 if ( ! isEqual ) {
@@ -126,7 +126,7 @@ export default {
126126 deep : true
127127 } ,
128128 id : {
129- handler : function ( ) {
129+ handler : function ( ) {
130130 const { vueIndex, vueKey } = this ;
131131 let layer = window . vueCesium [ this . managerName ] . findSource (
132132 vueKey ,
@@ -180,7 +180,7 @@ export default {
180180
181181 //取得除options、layerStyle和id之外的必要参数
182182 const { $props, vueIndex, vueKey } = this ;
183- Object . keys ( $props ) . forEach ( function ( key ) {
183+ Object . keys ( $props ) . forEach ( function ( key ) {
184184 if ( key !== "options" && key !== "layerStyle" && key !== "id" ) {
185185 opt [ key ] = $props [ key ] ;
186186 }
@@ -371,7 +371,7 @@ export default {
371371 vm = this ;
372372
373373 //遍历window.vueCesium下所有的Manager
374- Object . keys ( window . vueCesium ) . forEach ( function ( key ) {
374+ Object . keys ( window . vueCesium ) . forEach ( function ( key ) {
375375 if ( key . indexOf ( "Manager" ) > - 1 && key !== "GlobesManager" ) {
376376 //取出含有与webScene组件相同vueKey的Manager对象
377377 if ( window . vueCesium [ key ] . hasOwnProperty ( "vueKey" ) ) {
@@ -395,7 +395,7 @@ export default {
395395 } ) ;
396396
397397 //对数组进行排序
398- Layers . sort ( function ( a , b ) {
398+ Layers . sort ( function ( a , b ) {
399399 if ( a . options && b . options ) {
400400 return a . options . zIndex - b . options . zIndex ;
401401 }
@@ -637,7 +637,7 @@ export default {
637637 $_checkProps ( checkObj , checkType ) {
638638 let vm = this ;
639639 if ( checkObj && checkType ) {
640- Object . keys ( checkObj ) . forEach ( function ( key ) {
640+ Object . keys ( checkObj ) . forEach ( function ( key ) {
641641 let result ;
642642 if ( checkType . hasOwnProperty ( key ) && typeof key === "string" ) {
643643 result = vm . $_checkValue ( checkObj , key , checkType [ key ] ) ;
@@ -702,6 +702,14 @@ export default {
702702 tilingScheme = new Cesium . GeographicTilingScheme ( ) ;
703703 } else if ( tileMatrixSetName === "EPSG:3857" ) {
704704 tilingScheme = new Cesium . WebMercatorTilingScheme ( ) ;
705+ } else if (
706+ [ "bd09" , "bd09ll" , "bd09mc" , "gcj02" , "gcj02ll" , "gcj02mc" ] . indexOf (
707+ tileMatrixSetName
708+ ) > - 1
709+ ) {
710+ tilingScheme = new Cesium . CustomTilingScheme ( {
711+ wkid : tileMatrixSetName
712+ } ) ;
705713 } else {
706714 tilingScheme = new Cesium . GeographicTilingScheme ( ) ;
707715 }
0 commit comments