protoUi for Google Maps

Hi webix team,
I want built a protoUI for Google Maps Code Snippet but it does not work. I would be grateful for a tip.

the base view is google-map

you have to use webix.ui[‘google-map’] in protoUI
see:
https://snippet.webix.com/1mq7z9tg

Hello RainerRoss,

The reason why your code does not work is because instead of using webix.ui.map you should use webix.ui["google-map"] because weix.ui does not have view udner name map.
Defaults is better to use for configurations that will not change in the future. So better way is to define the function (reloadData) as method in your custom view and push it to ready function so that it was triggered when the component is ready:

  this.$ready.push(this.reloadData )

Please take a look at the example: Code Snippet

Or you can call it using onShow method which fires when window is shown:

  on: {
    onShow: function() {
      webix.message("onViewShow");
      $$("map").reloadData();
    }
  }

Please take a look at the example: Code Snippet

Hi Natalia,
this solution works perfect for me - a lot of thanks