Accessing widgets through script
May 26, 2017
08:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 26, 2017
08:46 AM
Accessing widgets through script
Can i access a widget through script? I have an OpenStreetMap widget for which i would like to design the MarkerStyle property based on a condition at runtime.
Should i use the Id of the widget, so i could have something like:
var template = Things[NetworkAsset].thingTemplate;
//if the template is TNetwork select the Primary Feeder Symbol
if(template = 'TNetwork') {
OpenStreetMap-388[MarkerStyle] = Things[Primary Feeder Symbol].Image;
}
I notice that i cannot change the widget Id property.
Any advice?
Labels:
- Labels:
-
Extensions
2 REPLIES 2
May 26, 2017
09:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 26, 2017
09:35 AM
I believe i can achieve this through an infotable..
Jun 02, 2017
09:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jun 02, 2017
09:02 AM
The OpenStreetMap has a MarkerField property, is there any advice on how to use this property? Which type of data does it require?
