@@ -4104,14 +4104,14 @@ export class WebMap extends Observable {
4104
4104
*/
4105
4105
createMigrationLayer ( layerInfo , features ) {
4106
4106
// 获取图层外包DOM
4107
- if ( ! window . EChartsLayer . prototype . getContainer ) {
4108
- window . EChartsLayer . prototype . getContainer = function ( ) {
4107
+ if ( ! window . ol3Echarts . prototype . getContainer ) {
4108
+ window . ol3Echarts . prototype . getContainer = function ( ) {
4109
4109
return this . $container ;
4110
4110
} ;
4111
4111
}
4112
4112
// 设置图层可见性
4113
- if ( ! window . EChartsLayer . prototype . setVisible ) {
4114
- window . EChartsLayer . prototype . setVisible = function ( visible ) {
4113
+ if ( ! window . ol3Echarts . prototype . setVisible ) {
4114
+ window . ol3Echarts . prototype . setVisible = function ( visible ) {
4115
4115
if ( visible ) {
4116
4116
let options = this . get ( 'options' ) ;
4117
4117
if ( options ) {
@@ -4127,8 +4127,8 @@ export class WebMap extends Observable {
4127
4127
} ;
4128
4128
}
4129
4129
// 设置图层层级
4130
- if ( ! window . EChartsLayer . prototype . setZIndex ) {
4131
- window . EChartsLayer . prototype . setZIndex = function ( zIndex ) {
4130
+ if ( ! window . ol3Echarts . prototype . setZIndex ) {
4131
+ window . ol3Echarts . prototype . setZIndex = function ( zIndex ) {
4132
4132
let container = this . getContainer ( ) ;
4133
4133
if ( container ) {
4134
4134
container . style . zIndex = zIndex ;
@@ -4141,8 +4141,8 @@ export class WebMap extends Observable {
4141
4141
* cursor: default !important;
4142
4142
* }
4143
4143
*/
4144
- if ( ! window . EChartsLayer . prototype . setCursor ) {
4145
- window . EChartsLayer . prototype . setCursor = function ( cursor = 'default' ) {
4144
+ if ( ! window . ol3Echarts . prototype . setCursor ) {
4145
+ window . ol3Echarts . prototype . setCursor = function ( cursor = 'default' ) {
4146
4146
let container = this . getContainer ( ) ;
4147
4147
if ( container && cursor === 'default' ) {
4148
4148
container . classList . add ( 'cursor-default' ) ;
@@ -4153,7 +4153,7 @@ export class WebMap extends Observable {
4153
4153
let lineData = this . createLinesData ( layerInfo , properties ) ;
4154
4154
let pointData = this . createPointsData ( lineData , layerInfo , properties ) ;
4155
4155
let options = this . createOptions ( layerInfo , lineData , pointData ) ;
4156
- let layer = new window . EChartsLayer ( options , {
4156
+ let layer = new window . ol3Echarts ( options , {
4157
4157
// hideOnMoving: true,
4158
4158
// hideOnZooming: true
4159
4159
//以下三个参数,如果不按照这样设置,会造成不可见图层时,缩放还会出现图层
0 commit comments