简体   繁体   中英

How to use Orion Context Broker to draw a circle on the map viewer

I want to draw a circle on the map viewer, and I searched the programmer developer guide carefully. My Json file was created like this.

(curl localhost:1026/v1/queryContext -s -S --header 'Content-Type: application/json' --header 'Accept: application/json' -d @- | python -mjson.tool) <<EOF
{
  "entities": [
  {
    "type": "City",
    "isPattern": "true",
    "id": ".*"
  }
  ],
  "restriction": {
    "scopes": [
    {
      "type" : "FIWARE::Location",
      "value" : {
        "circle": {
          "centerLatitude": "43.659590",
          "centerLongitude": "-79.397077",
          "radius": "15000"
        }
      }
    }
    ]
  }
}
EOF

I'm wondering how to use ngsi source operator and ngsi entity to POI to draw the circle on the map viewer on Fiware? It would be great if someone can provide me some detail about the steps.

目前这是不可能的,请在小部件的 github问题跟踪器中打开一张票:)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM