fix: eslint

This commit is contained in:
thinkinggis 2021-02-26 11:05:04 +08:00
parent ba607c68db
commit c875cba6ee
2 changed files with 6 additions and 5 deletions

View File

@ -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,
);

View File

@ -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({