-
Notifications
You must be signed in to change notification settings - Fork 131
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
Error with openlayers 5.0.2 #43
Comments
let map = new Map({
|
@HymanL ol5+暂时请使用以下方式(PS: 后面会将ol 和 openlayers的包合并):
|
非常的感谢您的耐心解答。解决了现有问题,但是现在正在报Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'的错误,我想是不是因为ol版本的问题。我研究一下,非常感谢
…------------------ 原始邮件 ------------------
发件人: "FDD"<notifications@github.com>;
发送时间: 2019年12月4日(星期三) 晚上6:06
收件人: "sakitam-fdd/wind-layer"<wind-layer@noreply.github.com>;
抄送: "Hyman"<736160261@qq.com>; "Mention"<mention@noreply.github.com>;
主题: Re: [sakitam-fdd/wind-layer] Error with openlayers 5.0.2 (#43)
@HymanL ol5+暂时请使用以下方式(PS: 后面会将ol 和 openlayers的包合并):
import WindLayer from 'wind-layer/dist/OlWindy.esm.js'; var wind = new WindLayer(out, { layerName: '', minResolution: undefined, maxResolution: undefined, zIndex: 6, projection: 'EPSG:4326', ratio: 1 }); map.addLayer(wind);
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在使用过程中,发现这个过程不断的出错误。是我用的方式不对嘛?react 16.11.0 ol是5.0.2
错误:windLayer.esm.js:917 Uncaught (in promise) TypeError: this.get is not a function
at OlWind.getMap (windLayer.esm.js:917)
报错指向这个方法:/**
*/
OlWindy.prototype.getMap = function getMap () {
return this.get('originMap');
};
下面贴上我的部分代码
The text was updated successfully, but these errors were encountered: