UNPKG

node-red-contrib-barco-sources-here

Version:

utility to get map information using here map

56 lines (54 loc) 2.14 kB
<script type="text/javascript"> RED.nodes.registerType('here',{ category: 'input', color: '#a6bbcf', defaults: { id: {value:"",required:true}, code: {value:"",required:true}, lat: {value:"",required:true}, lon: {value:"",required:true}, zoom: {value:"",required:true}, disable: {value:false}, basePath:{value:(window.location.protocol + '//' + window.location.host)} }, inputs:0, outputs:1, icon: "white-globe.png", label: function() { return "Here Integrator"; } }); </script> <script type="text/x-red" data-template-name="here"> <div class="form-row"> <label for="node-input-id"><i class="icon-tag"></i> Here ID</label> <input type="text" id="node-input-id"> </div> <div class="form-row"> <label for="node-input-code"><i class="icon-tag"></i> Here Code</label> <input type="text" id="node-input-code"> </div> <div class="form-row"> <label for="node-input-lat"><i class="icon-tag"></i> Latitude</label> <input type="text" id="node-input-lat"> </div> <div class="form-row"> <label for="node-input-lon"><i class="icon-tag"></i> Longitude </label> <input type="text" id="node-input-lon"> </div> <div class="form-row"> <label for="node-input-zoom"><i class="icon-tag"></i> Zoom Value</label> <input type="text" id="node-input-zoom"> </div> <div class="form-row"> <label for="node-input-disable"><i class="icon-stop"></i> Disable the node output</label> <input type="checkbox" id="node-input-disable" style="display:inline-block;width:auto;"> </div> </script> <script type="text/x-red" data-help-name="here"> <p>A node for configuring input sources to get infomation from here</p> <p>id and code is required for connecting to mapquest</p> <p>lat, lon and zoom is required to calculate boundary of the area of which the information to be received.</p> <br><br> <br><br> </script>