How create binding on component property by script

Hi,
I can simply setup a script and fill property of a component by that.
For Example:

 self.getSibling("Map").props.layers.ui.view = {
   "path": "Templates/Map/Markup/Wellhead",
   "params": {
     "Label": "West Franklin"
   },
   "lat": 13.3,
   "lng": 24.57,
   "transparentBackground": True,
  "shadow": False
 }

but I wonder how I can create a tag binding on property by script. For example how I can bind a tag binding to ‘lat’ member of ebove example.
I know i should put something like this:

{
  "type": "tag",
  "config": {
    "mode": "direct",
    "tagPath": "[default]GIS/B212/lat",
    "fallbackDelay": 2.5
  }
}
3 Likes

Not sure it’s possible to affect the bindings through scripting like that, but I’d be curious to see if a dev can share something here we don’t know.

4 Likes

Did you find a way to do that ? i have the same problem

It is not possible right now. may be if we can open view file we can inject JSON on it to do that but I don’t know how to do it.