fix: mapbox 3d 柱图显示问题

This commit is contained in:
thinkinggis 2020-02-21 10:06:49 +08:00
parent 1e1941f60d
commit bf1c5000b6
3 changed files with 5 additions and 5 deletions

View File

@ -108,7 +108,7 @@ float project_pixel(float pixel) {
// P20 坐标系下,为了和 Web 墨卡托坐标系统一zoom 默认减1
return pixel * pow(2.0, (19.0 - u_Zoom));
}
return pixel * -1.;
return pixel;
}
vec2 project_pixel(vec2 pixel) {
if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {

View File

@ -1,5 +1,5 @@
import { PointLayer, Scene } from '@antv/l7';
import { Mapbox } from '@antv/l7-maps';
import { GaodeMap, Mapbox } from '@antv/l7-maps';
import * as React from 'react';
// @ts-ignore
import data from '../data/data.json';

View File

@ -46,9 +46,9 @@ export default class PointImage extends React.Component {
y: 'latitude',
},
})
.shape('name', ['00', '01', '02'])
// .shape('name', 'text')
// .color('red')
// .shape('name', ['00', '01', '02'])
.shape('triangle')
.color('red')
.active(false)
.size(20);
// imageLayer.on('click', (e) => {