Webix-map(Open Map)

https://webix.com/snippet/d4f189d2

Here is my code and console gives these errors (Of Course i set button id on my own code);

Uncaught ReferenceError: webix is not defined
at openMap.js:1

and

Uncaught TypeError: e[i] is not a constructor
at Function.e.A (webix_debug.js:4685)
at o.body_setter (webix_debug.js:7619)
at o.D (webix_debug.js:2327)
at o.C (webix_debug.js:2333)
at o.e (webix_debug.js:2347)
at o (webix_debug.js:232)
at Function.e.A (webix_debug.js:4685)
at Object.webix.ui (webix_debug.js:4425)
at o. (_VehicleList.js:505)
at o.callEvent (webix_debug.js:546)

Is it about the version of webix ? Thanks in advance…

@ acihank https://webix.com/snippet/1bf0956d

( Duno if it’s only by me , but the open map doesn’t fully load )

Thank you so much @Yuppy you almost save me again but i still get that error “Uncaught ReferenceError: webix is not defined openmap.js:1”

What could it be ?

@acihank Did you add openmap.js to your code ?

You can get it from github : GitHub - webix-hub/components: Third party integrations for the Webix UI .

Also you may need to add the leaflet.js and .css , but i’m not sure if you need them. Here : Download - Leaflet - a JavaScript library for interactive maps

@Yuppy Yeah i added it. i also try with the cdn but it still gives that error.

@Yuppy Thank you so much again mate, it works. I added the cdn tags to body of my html code but as you did the open map doesn’t fully load

@Listopad the open map doesn’t fully load Do you know the solution ?

https://webix.com/snippet/5f781a03

@Yuppy i ve changed the cdn tags. in this case map works perfectly when the window is opened for the first time. But at the second time it fails again.

@acihank Someone reported similar problem on github long time ago.

Try his workaround.

@Yuppy nothing has changed mate. Now i am working on google-map( i prefer open map be cause it is cute). When i first load map it works well but in the 2. time it fails. It should fail at the first time too.Oh God what a buggy frame work it is…

Hello,

I can confirm the issue, we will provide a fix for it.

For the time being you can use another approach for working with Webix windows: you should create a window just ince (not on each button click) and hide it rather than destroy: https://webix.com/snippet/e36529b1

This will prevent from rendering inconsistency with the inner map.

@Helga Thank you. Your “hide” solution doesnt work with google -map and open-map although it works fine in snippet tool. We are waiting your solution. :By the way my company uses pro edition.