Skip to content
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

iclient-ol建议把ol-mapbox-style作为模块引入 #377

Open
luo-geng opened this issue Dec 14, 2022 · 0 comments
Open

iclient-ol建议把ol-mapbox-style作为模块引入 #377

luo-geng opened this issue Dec 14, 2022 · 0 comments
Assignees

Comments

@luo-geng
Copy link

文件位置:@supermap/iclient-ol/overlay/vectortile/MapboxStyles.js

    _createStyleFunction() {
        if (this.map) {
            window.olms.applyBackground(this.map, this._mbStyle);
        }
        this.featureStyleFuntion = this._getStyleFunction();
    }

esm开发,源码使用window.olms。建议把ol-mapbox-style作为模块引入,或者做其他兼容

@songyumeng songyumeng self-assigned this Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants