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
L7使用Mapbox map 并且layerType设置为"fillImage" ,展示的图片会被镜像,有什么办法避免吗? 如天气图
在地图上显示
https://codesandbox.io/p/devbox/l7-demo-forked-jlgwt6?workspaceId=ws_7q4kvMLpCQ9qXWqYazxCaS
即可复现
亦可直接登录https://l7.antv.antgroup.com/zh/examples/point/image#weather 贴入下面的代码
import { PointLayer, Scene } from '@antv/l7'; import { Mapbox } from '@antv/l7-maps'; const scene = new Scene({ id: 'map', map: new Mapbox({ zoom: 0, minZoom: 0, maxZoom: 18, token: 'pk.eyJ1Ijoic2tvcm5vdXMiLCJhIjoiY2s4dDBkNjY1MG13ZTNzcWEyZDYycGkzMyJ9.tjfwvJ8G_VDmXoClOyxufg', }), }); scene.on('loaded', () => { scene.addImage( '00', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*kzTMQqS2QdUAAAAAAAAAAABkARQnAQ', ); scene.addImage( '01', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*jH1XRb7F7hMAAAAAAAAAAABkARQnAQ', ); scene.addImage( '02', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*YaKSTr3L5i8AAAAAAAAAAABkARQnAQ', ); scene.addImage( '04', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*dmniQrDpCYwAAAAAAAAAAABkARQnAQ', ); scene.addImage( '11', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*YaKSTr3L5i8AAAAAAAAAAABkARQnAQ', ); scene.addImage( '15', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*YNlXQYCIzroAAAAAAAAAAABkARQnAQ', ); scene.addImage( '07', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*DccRTI6ZRLoAAAAAAAAAAABkARQnAQ', ); scene.addImage( '16', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*iQKoS6I-rO8AAAAAAAAAAABkARQnAQ', ); scene.addImage( '06', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*f-wyS7ad5p0AAAAAAAAAAABkARQnAQ', ); scene.addImage( '08', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*lHhzQrOW4AQAAAAAAAAAAABkARQnAQ', ); scene.addImage( '17', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*9Q0QS4GdaYcAAAAAAAAAAABkARQnAQ', ); scene.addImage( '05', 'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*LyuVRowl6nAAAAAAAAAAAABkARQnAQ', ); fetch('https://gw.alipayobjects.com/os/basement_prod/c6042c6b-45fd-4e2e-adf8-fdbf060441e8.json') .then((res) => res.json()) .then((data) => { const imageLayer = new PointLayer({layerType: "fillImage" }) .source(data) .shape('w', function (w) { return w; }) .size(15); scene.addLayer(imageLayer); }); });
fillImage是必须加的一个属性,因为要处理其他问题,期望在设置fillImage后图片在mapbox map中不镜像
No response
The text was updated successfully, but these errors were encountered:
在使用 antvis/L7 和 Mapbox 时,设置 layerType 为 fillImage 会导致图片被镜像的问题,可能是由于图层渲染的默认行为导致的。为了避免这种情况,可以尝试以下方法:
layerType
fillImage
检查图像源:确保图像源本身没有被镜像。如果图像源是正确的,那么问题可能出在渲染设置上。
调整渲染设置:在 PointLayer 的配置中,检查是否有其他属性可以影响图像的渲染方向。例如,检查是否有 rotate 或 flip 相关的属性。
PointLayer
rotate
flip
自定义渲染逻辑:如果默认的 fillImage 渲染逻辑不符合需求,可以考虑使用自定义的渲染逻辑来控制图像的显示方式。
咨询社区或开发者:如果以上方法无效,可以在 antvis/L7 的 GitHub 仓库中查看是否有类似的问题被报告,或者向社区寻求帮助。
如果需要进一步的帮助,您可以提供更多的代码细节或错误信息,以便更好地诊断问题。
如果您同意,我可以帮您在 antvis/L7 的 GitHub 仓库中搜索是否有类似的问题被报告。请告知我您的决定。
Sorry, something went wrong.
Hi @Menndy, Please star this repo if you find it useful! Thanks ⭐! 你好~ @Menndy 🌟 如果这个仓库对你有帮助,可以给我们点个star支持一下~你的支持对我们来说是最大的鼓励,感谢你的支持与点赞 🌟
lzxue
No branches or pull requests
问题描述
L7使用Mapbox map 并且layerType设置为"fillImage" ,展示的图片会被镜像,有什么办法避免吗?

如天气图
在地图上显示
重现链接
https://codesandbox.io/p/devbox/l7-demo-forked-jlgwt6?workspaceId=ws_7q4kvMLpCQ9qXWqYazxCaS
重现步骤
即可复现
亦可直接登录https://l7.antv.antgroup.com/zh/examples/point/image#weather 贴入下面的代码
预期行为
fillImage是必须加的一个属性,因为要处理其他问题,期望在设置fillImage后图片在mapbox map中不镜像
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: