Skip to main content
16-Pearl
April 28, 2025
Solved

openstreetmap widget

  • April 28, 2025
  • 1 reply
  • 1389 views

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 ...

Best answer by iguerra

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

1 reply

Rocko
19-Tanzanite
April 29, 2025

Not sure if that helps, but some doc on the widget is linked here:

https://community.ptc.com/t5/ThingWorx-Developers/how-to-use-openstreet-map/m-p/991334/highlight/true#M68754

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.

iguerra16-PearlAuthor
16-Pearl
April 29, 2025

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

17-Peridot
April 30, 2025

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