mirror of https://gitee.com/antv-l7/antv-l7
Merge pull request #220 from antvis/fix_extrude_mapbx
fix: mapbox 3d 柱图显示问题
This commit is contained in:
commit
5149e59cd0
|
@ -108,7 +108,7 @@ float project_pixel(float pixel) {
|
||||||
// P20 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减1
|
// P20 坐标系下,为了和 Web 墨卡托坐标系统一,zoom 默认减1
|
||||||
return pixel * pow(2.0, (19.0 - u_Zoom));
|
return pixel * pow(2.0, (19.0 - u_Zoom));
|
||||||
}
|
}
|
||||||
return pixel * -1.;
|
return pixel;
|
||||||
}
|
}
|
||||||
vec2 project_pixel(vec2 pixel) {
|
vec2 project_pixel(vec2 pixel) {
|
||||||
if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {
|
if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { PointLayer, Scene } from '@antv/l7';
|
import { PointLayer, Scene } from '@antv/l7';
|
||||||
import { Mapbox } from '@antv/l7-maps';
|
import { GaodeMap, Mapbox } from '@antv/l7-maps';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import data from '../data/data.json';
|
import data from '../data/data.json';
|
||||||
|
|
|
@ -46,9 +46,9 @@ export default class PointImage extends React.Component {
|
||||||
y: 'latitude',
|
y: 'latitude',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.shape('name', ['00', '01', '02'])
|
// .shape('name', ['00', '01', '02'])
|
||||||
// .shape('name', 'text')
|
.shape('triangle')
|
||||||
// .color('red')
|
.color('red')
|
||||||
.active(false)
|
.active(false)
|
||||||
.size(20);
|
.size(20);
|
||||||
// imageLayer.on('click', (e) => {
|
// imageLayer.on('click', (e) => {
|
||||||
|
|
Loading…
Reference in New Issue