-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
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
图层拾取功能错误 #230
Labels
Comments
maplibre-gl没有这个问题 |
@yudeqang 这个已定位到 BUG,是 leaflet 鼠标位置 unproject 实现的问题,下个版本修复 临时解决的话可以覆盖 picker 方法: wind.picker = async function(coordinates) {
if (!this.options.picking) {
console.warn('[Layer]: please enable picking options!');
return null;
}
if (!this.layer || !coordinates || !this._map) {
console.warn('[Layer]: layer not initialized!');
return null;
}
const point = this._map.latLngToContainerPoint(coordinates);
return this.layer.picker([point.x, point.y]);
} |
大佬,请教个问题,我在图层中加了个marker用于显示图层的数值,当切换图层的时候我不能立即调用layer.pikcer刷新数值,因为图层还没有渲染好,我想问下哪个变量表示图层已经渲染好了 |
还有个问题,请问怎么渲染nodata数据,比如想要渲染土壤墒情,海洋中就是nodata值,我如果在原始数据中写入0,然后指定显示>0的数据,0在插值中就会污染附近的有效值,请问怎么让0不参与插值运算呢? |
source.sourceCache.on('tilesLoadEnd', (e) => {
console.log(e);
});
// 手动判断
console.log(source.sourceCache.loaded());
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我添加了一个气温图层,点击图层返回的数据异常,基本都是0。
复现代码:点击
The text was updated successfully, but these errors were encountered: