Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit 1ff5e6c

Browse files
authored
Merge pull request #37 from RemcoJanssen/patch-1
Add support voor MAP component (WidgetMAP)
2 parents ecb9668 + 7900f9e commit 1ff5e6c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

blynk.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,15 @@ var Blynk = function(auth, options) {
414414
self.virtualWrite(this.pin, 0);
415415
};
416416
};
417+
418+
this.WidgetMAP = function(vPin) {
419+
this.pin = vPin;
420+
421+
this.location = function(index, lat, lon, value) {
422+
var locationdata = [index, lat, lon, value]
423+
self.virtualWrite(this.pin, locationdata);
424+
}
425+
};
417426

418427
if (needsEmitter()) {
419428
util.inherits(this.VirtualPin, events.EventEmitter);

0 commit comments

Comments
 (0)