|
6 | 6 | category: 'IoT standard',
|
7 | 7 | color: '#00AFF0',
|
8 | 8 | defaults: {
|
| 9 | + latitude: {value:""}, |
| 10 | + longitude: {value:""}, |
| 11 | + radius: {value:""}, |
9 | 12 | name: {value:""},
|
10 | 13 | operations: {value:""},
|
11 | 14 | type1: {value:"all"},
|
|
23 | 26 | var oper = $("#node-input-operations").val();
|
24 | 27 | //var oper_readTypes = $("#node-input-readTypes").val();
|
25 | 28 | if (oper == undefined) {
|
| 29 | + $(".node-input-Geo1").hide(); |
| 30 | + $(".node-input-Geo2").hide(); |
| 31 | + $(".node-input-Geo3").hide(); |
26 | 32 | $(".node-input-type1").hide();
|
27 | 33 | $(".node-input-price").hide();
|
28 | 34 | $(".node-input-reputation").hide();
|
|
59 | 65 | <option value="getServiceAccessInformation">getServiceAccessInformation</option>
|
60 | 66 | </select>
|
61 | 67 | </div>
|
| 68 | + <div class="form-row node-input-Geo1"> |
| 69 | + <label for="node-input-Geo1"><i class="fa fa-map-marker"></i> Geo-Filter</label> <span data-i18n="type1"></span></label> |
| 70 | + <input type="text" id="node-input-latitude" placeholder="Set latitude (by default: n/a, i.e. parameter not used)"> |
| 71 | + </div> |
| 72 | + <div class="form-row node-input-Geo2"> |
| 73 | + <label for="node-input-Geo2"> </label> <span data-i18n="type1"></span></label> |
| 74 | + <input type="text" id="node-input-longitude" placeholder="Set longitude (by default: n/a, i.e. parameter not used)"> |
| 75 | + </div> |
| 76 | + <div class="form-row node-input-Geo3"> |
| 77 | + <label for="node-input-Geo3"></label> <span data-i18n="type1"></span></label> |
| 78 | + <input type="text" id="node-input-radius" placeholder="Set a radius (by default: 100m)"> |
| 79 | + </div> |
62 | 80 | <div class="form-row node-input-type1">
|
63 | 81 | <label for="node-input-type1"><i class="fa fa-search"></i> Type</label> <span data-i18n="type1"></span></label>
|
64 | 82 | <input type="text" id="node-input-type1" placeholder="Set an INSPIRE theme if desired (by default: all)">
|
|
80 | 98 | $("#node-input-operations").change(function() {
|
81 | 99 | var oper = $("#node-input-operations").val();
|
82 | 100 | if (oper == "getAllServices") {
|
| 101 | + $(".node-input-Geo1").hide(); |
| 102 | + $(".node-input-Geo2").hide(); |
| 103 | + $(".node-input-Geo3").hide(); |
83 | 104 | $(".node-input-type1").hide();
|
84 | 105 | $(".node-input-price").hide();
|
85 | 106 | $(".node-input-reputation").hide();
|
86 | 107 | $(".node-input-service").hide();
|
87 | 108 | } else if (oper == "searchServices") {
|
| 109 | + $(".node-input-Geo1").show(); |
| 110 | + $(".node-input-Geo2").show(); |
| 111 | + $(".node-input-Geo3").show(); |
88 | 112 | $(".node-input-type1").show();
|
89 | 113 | $(".node-input-price").show();
|
90 | 114 | $(".node-input-reputation").show();
|
91 | 115 | $(".node-input-service").hide();
|
92 | 116 | }
|
93 | 117 | else if (oper == "getServiceAccessInformation") {
|
| 118 | + $(".node-input-Geo1").hide(); |
| 119 | + $(".node-input-Geo2").hide(); |
| 120 | + $(".node-input-Geo3").hide(); |
94 | 121 | $(".node-input-type1").hide();
|
95 | 122 | $(".node-input-price").hide();
|
96 | 123 | $(".node-input-reputation").hide();
|
|
103 | 130 |
|
104 | 131 | <script type="text/x-red" data-help-name="iotbnb">
|
105 | 132 | <p> operations= n.operations || msg.operations;
|
| 133 | + latitude= n.latitude || msg.latitude; |
| 134 | + longitude= n.longitude || msg.longitude; |
| 135 | + radius= n.radius || msg.radius; |
106 | 136 | price= n.price || msg.price;
|
107 | 137 | type1= n.type1 || msg.type1;
|
108 | 138 | reputation= n.reputation || msg.reputation;
|
|
0 commit comments