Using thingworx 9.6 cloud hosted .
has anyone used the MarkerField field on that widget ?
I tried using this field as IMAGE and IMAGELINK format but seens not working in any way ...
there is no doc ... may be because it's not supprted any more?
I'm now using the markerformatting to change the marker (using an integer field to select a style through a state-definition), but would use a specific "image" field passed directly on the infotable data ...
Solved! Go to Solution.
I found the problem looking into the extension code
The marker field on the grid data has not to be of type IMAGE or IMAGELINK, but a STRING with the image path like
/Thingworx/MediaEntities/MyMarker
In this way I can use any marker on the map, from the infotable data
Probably, on the extension code, should change the assignment of the path to '/Thingworx/MediaEntities/' + MarkerName , in order to have on the grid data an IMAGELINK data type .. better to use. Anycase with the string method can get what I need.
Bye
Not sure if that helps, but some doc on the widget is linked here:
Also check
https://github.com/thingworx-field-work/ThingworxUICatalogue
this should come with an OSM example mashup.I don't know if it uses the markerfield though.
I imported the GitHub package and example, unfortunately it's not using MarkerField
The markers in this demo are fixed and set on the widget style section
Hello @iguerra ,
The open Streets Extension, is not supported. I have looked at this Extension previously. One of the issue I found was the library which supports Open Streets has been updated. It would be wise to make sure your version is up to date.
If you have a test case which you can export (as XML). I will take a look and see if there is any recommendation
Regards,
Pehowe
The version got from github is 1.1.0
Unfortunately this widget has has lot of problems:
This widget is not supported by PTC so ... has to fix it by myself or create a new custom extension...
May be a "map widget" should be available as standard supported widget of an IoT platform ?
Hello @iguerra ,
I took a look at the Extension and the different versions of ThingWorx. I do not have any documentation which tells me how the OpenStreet Widget is intended to work.
If I take the widget in ThingWorx 9.3.19 and 9.6.1 There is a difference in the generated HTML code.
In 9.3.19 you will find:
If opened shows the HTML to place a marker image.
In 9.6.1 you will find:
There is no HTML code to expand.
HTH
Pehowe
I found the problem looking into the extension code
The marker field on the grid data has not to be of type IMAGE or IMAGELINK, but a STRING with the image path like
/Thingworx/MediaEntities/MyMarker
In this way I can use any marker on the map, from the infotable data
Probably, on the extension code, should change the assignment of the path to '/Thingworx/MediaEntities/' + MarkerName , in order to have on the grid data an IMAGELINK data type .. better to use. Anycase with the string method can get what I need.
Bye