We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
专家任务
https://github.com/antvis/L7/blob/master/packages/layers/src/line/shaders/line_vert.glsl#L129
f(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x lineHeight *= 0.2; // 保持和 amap/mapbox 一致的效果 h *= 0.2; if(u_heightfixed < 1.0) { lineHeight = project_pixel(a_Size.y); } gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0)); } else { // mapbox - amap // 兼容 mapbox 在线高度上的效果表现基本一致 if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox // 保持高度相对不变 float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); h *= mapboxZoomScale; h += u_raisingHeight * mapboxZoomScale; if(u_heightfixed > 0.0) { lineHeight *= mapboxZoomScale; } } else { // amap h += u_raisingHeight; // lineHeight 顶点偏移高度 if(u_heightfixed < 1.0) { lineHeight *= pow(2.0, 20.0 - u_Zoom); } } gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); }
任务要求:
The text was updated successfully, but these errors were encountered:
heiyexing
No branches or pull requests
AntV Open Source Contribution Plan(可选)
Issue 类型
专家任务
任务介绍
https://github.com/antvis/L7/blob/master/packages/layers/src/line/shaders/line_vert.glsl#L129
参考说明
任务要求:
The text was updated successfully, but these errors were encountered: