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

Getting error "e.isDef is not a function" when integrating ol-cesium #223

Open
Dji75 opened this issue Mar 20, 2019 · 2 comments
Open

Getting error "e.isDef is not a function" when integrating ol-cesium #223

Dji75 opened this issue Mar 20, 2019 · 2 comments

Comments

@Dji75
Copy link

Dji75 commented Mar 20, 2019

Hello,

I'm trying to integrate ol-cesium with ngx-openlayers to my project and I encounter an unexpected error when calling setEnabled from OLcesium :

TypeError: e.isDef is not a function
    at e.t.throwOnUnitializedMap_ (olcesium.umd.js:1)
    at e.t.setEnabled (olcesium.umd.js:1)
    at AppComponent.push../src/app/app.component.ts.AppComponent.init3dGlobe (app.component.ts:65)
    at AppComponent.push../src/app/app.component.ts.AppComponent.switch3DMode (app.component.ts:54)
    at Object.eval [as handleEvent] (AppComponent.html:1)
    at handleEvent (core.js:23106)
    at callWithDebugContext (core.js:24176)
    at Object.debugHandleEvent [as handleEvent] (core.js:23903)
    at dispatchEvent (core.js:20555)
    at core.js:21002

Here is my versions

ngx-openlayers: 1.0.0-next.6
ol: 6.0.0-beta.3
ol-cesium: 2.8.0

ngx-openlayers uses openlayers 4.4.2 but ol-cesium 2.8.0 uses ol 6.0.0-beta.3 ("ol", not old named "openlayers")
I can't find right version of ngx-openlayers to deal correctly with quite recent ol-cesium.

Here is the minimal project which reproduce the error: https://github.com/Dji75/temp-ol-cesium

I'm stuck for days, thanks to help me or give me advice I can follow to find my way :)
Thanks

@Yakoust
Copy link
Contributor

Yakoust commented Apr 4, 2019

Maybe this will be fixed by OL5 intergartion in #183

@Dji75
Copy link
Author

Dji75 commented Apr 4, 2019

Yes you're right, it fix it ! (but I have now other issues but not related to ol-cesium)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants