mirror of https://gitee.com/antv-l7/antv-l7
fix: eslint
This commit is contained in:
parent
ba607c68db
commit
c875cba6ee
|
@ -393,8 +393,10 @@ export default class MapboxService
|
|||
cameraHeight: 0,
|
||||
});
|
||||
|
||||
const { offsetZoom = LNGLAT_OFFSET_ZOOM_THRESHOLD } = this.config;
|
||||
|
||||
// set coordinate system
|
||||
if (this.viewport.getZoom() > LNGLAT_OFFSET_ZOOM_THRESHOLD) {
|
||||
if (this.viewport.getZoom() > offsetZoom) {
|
||||
this.coordinateSystemService.setCoordinateSystem(
|
||||
CoordinateSystem.LNGLAT_OFFSET,
|
||||
);
|
||||
|
|
|
@ -20,7 +20,6 @@ export default class World extends React.Component {
|
|||
}
|
||||
|
||||
public async componentDidMount() {
|
||||
|
||||
const scene = new Scene({
|
||||
id: 'map',
|
||||
logoVisible: false,
|
||||
|
@ -45,16 +44,16 @@ export default class World extends React.Component {
|
|||
|
||||
layer
|
||||
.source(data.geo_data)
|
||||
.color( '#CF1D49')
|
||||
.color('#CF1D49')
|
||||
.shape('line')
|
||||
.size(1)
|
||||
.select(true)
|
||||
.style({
|
||||
opacity: 0.8,
|
||||
});
|
||||
layer2
|
||||
layer2
|
||||
.source(data.geo_data)
|
||||
.color( '#CF1')
|
||||
.color('#CF1')
|
||||
.shape('fill')
|
||||
.select(true)
|
||||
.style({
|
||||
|
|
Loading…
Reference in New Issue