How to show an object from OrionContextBroker in a MapViewer widget

I am trying to show an object stored in my OrionContextBroker instance in Wirecloud MapViewer widgets. I am creating a context using this JSON POST REST request for miOrionInstance: 1026 / v1 / updateContext as follows:

{ "contextElements": [ { "type": "Room", "isPattern": "false", "id": "Room1", "attributes": [ { "name": "position", "type": "string", "value": "43.47258, -3.8026643" } ] } ], "updateAction": "APPEND" } 

I can retrieve this information through the NGSIUpdater widget without problems, but I cannot show this entity in the MapViewer widget. I tried to associate the NGSISource operator with the NGSIEntityToPol operator and, finally, with the MapViewer widget (in the Insert / Update centered Pol field). NGSISource statement configuration:

 NGSI server URL: http://miOrionInstanceIP:1026 NGSI proxy URL: http://ngsiproxy.lab.fi-ware.org NGSI entity types: Room Id Pattern: Monitored NGSI Attribures: position 

And the configuration of the NGSIEntityToPol statement is as follows:

 Coordinates attribute: position 

But nothing is displayed on the map.

Thanks,

+1
source share
1 answer

The value of the NGSI object types is incorrect; it must contain the entity type of the objects that interest you (for example, Room). The rest of the configuration seems to be correct, therefore, if changing this parameter does not solve your problems, you may encounter the same problems described in this question .

+1
source

Source: https://habr.com/ru/post/1208180/


All Articles