-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path70-geobuf.html
29 lines (26 loc) · 962 Bytes
/
70-geobuf.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script type="text/javascript">
RED.nodes.registerType('geobuf',{
category: 'function',
color: '#DEBD5C',
defaults: {
name: {value:""},
},
inputs:1,
outputs:1,
icon: 'arrow-in.png',
label: function() {
return this.name||'geobuf';
}
});
</script>
<script type="text/x-red" data-template-name="geobuf">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="geobuf">
<p>A node to convert <code>GeoJSON</code> <code>msg.payload</code> to and from <a href="https://github.com/mapbox/geobuf"><i>Geobuf</i></a>.</p>
<p>If the input is NOT a buffer it tries to convert it to a geobuf buffer.</p>
<p>If the input is a geobuf buffer it tries to decode it back.</p>
</script>