MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / broadcast_Polygon

Function broadcast_Polygon

test/openlayers/overlay/DataFlowSpec.js:186–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185 it('broadcast_Polygon', done => {
186 var broadcast_Polygon = flowService => {
187 var feature = {
188 geometry: {
189 coordinates: [
190 [
191 [116.381741960925, 39.8765100055449],
192 [116.414681699817, 39.8765100055449],
193 [116.414681699817, 39.8415115329708],
194 [116.381741960925, 39.8765100055449]
195 ]
196 ],
197 type: 'Polygon'
198 },
199 id: 3,
200 type: 'Feature',
201 properties: {
202 id: 3,
203 time: new Date()
204 }
205 };
206 flowService.broadcast(feature);
207 };
208
209 const source = new DataFlow({
210 ws: urlDataFlow

Callers 1

DataFlowSpec.jsFile · 0.70

Calls 1

broadcastMethod · 0.45

Tested by

no test coverage detected