cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

openstreetmap widget

iguerra
16-Pearl

openstreetmap widget

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

ACCEPTED SOLUTION

Accepted Solutions
iguerra
16-Pearl
(To: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

View solution in original post

7 REPLIES 7

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.

iguerra
16-Pearl
(To:Rocko)

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

PEHOWE
17-Peridot
(To:iguerra)

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

iguerra
16-Pearl
(To:PEHOWE)

The version got from github is 1.1.0

 

Unfortunately this widget has has lot of problems:

  • Marker Field , noone knows how to use, and if this param is used internally
  • the tooltip mashup (param TooltipMashupName) does not works.
    It is used to open a specific small mashup with mouse-over a marker. This toolip mashup will open but mashup parameters are not passed to it.

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 ?

 

There is a map widget, it uses Google Maps.

https://iqnox.com/free-thingworx-widgets/

 

PEHOWE
17-Peridot
(To:iguerra)

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
 

iguerra
16-Pearl
(To: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

Announcements


Top Tags