if I click on the show button the first time, the map presents in the correct way, if I click on close button and then click again on the show button the zoom view change by itself.
If I remove the g.resize() call after g.show() , the map will not show at all.
Helga,
I hope I don’t bother too much, I did what you wrote me but it still does not work, the following snippet is very similar to my actual code: http://webix.com/snippet/8237f7da
and on the second click something changes the zoom
I meant that you needn’t recreate the window each time (webix.ui call).
So, is the window doesn’t exist, then you should create it. Otherwise you only need to reset its center and zoom parameters: Check the updated snippet, please: http://webix.com/snippet/499cbaf9
Thank you. With your hints I’m on right way: I must create the window map container once and then I must work on it with the define method. I modified my code and now it is faster and reliable.
Two other things:
is there a way to substitute $$(“map”).define({center: [lng, lat], zoom:6});
with the getBody method?
I would like to add a marker on center coords but I don’t want to modify the original googlemap.js script, how may I do that?