Well I'm trying to show the following entity:
{
"contextResponses" : [
{
"contextElement" : {
"type" : "City",
"isPattern" : "false",
"id" : "Miraflores",
"attributes" : [
{
"name" : "position",
"type" : "coords",
"value" : "-12.119816, -77.028916",
"metadatas" : [
{
"name" : "location",
"type" : "string",
"value" : "WSG84"
}
]
}
]
},
"statusCode" : {
"code" : "200",
"reasonPhrase" : "OK"
}
}
]
}
Wiring NGSI Source and NGSI Entity to Poi operatiors with MapViewer widget (Insert/Update PoI), with the following settings:
NGSI Source
- NGSI server URL: mydirection:1026
- NGSI proxy URL: http://mashup.lab.fi-ware.org:3000/
- NGSI entities: City
- NGSI Attributes: position
NGSI Entity to Poi
- Coordinates attribute: position
But nothing shows up in the map! Can somebody help me figure out what the problem is?
Seems your configuration is correct (I'm assuming mydirection:1026 is a full URL, i.e. includes the protocol), but probably your network is filtering port 3000. Try to use
http://ngsiproxy.lab.fi-ware.org
as NGSI proxy instead ofhttp://mashup.lab.fi-ware.org:3000/
.Indeed, I recommend you to enable https notifications in your context broker instance and use
https://ngsiproxy.lab.fi-ware.org
instead, especially if you are creating your WireCloud dashboard in an https web page (e.g. https://mashup.lab.fi-ware.org) as using this NGSI proxy will solve some mixed content problems, see:Update: FIWARE has move from fi-ware.org to fiware.org. The recommended NGSI proxy server is now
ngsiproxy.lab.fiware.org
(ngsiproxy.lab.fi-ware.org
still works).