vshymanskyy / blynk-library-js

Blynk library for JS. Works with Browsers, Node.js, Espruino.
https://blynk.io/
MIT License
215 stars 67 forks source link

Add support voor MAP component (WidgetMAP) #37

Closed RemcoJanssen closed 6 years ago

RemcoJanssen commented 6 years ago

The added code enables the user to use a MAP component for the phone APP in the same way the WidgetLED is used:

var mymap = new blynk.WidgetMAP(virtualport); mymap.location(index, lat, lon, value);

Tested it on a raspberry pi 3

Gun-neR commented 6 years ago

Did this get looked at? I just reinstalled Blynk NodeJS library and had to add this in manually again.

https://community.blynk.cc/t/using-the-map-with-js-library/20122/4

PS, also needs the myMap.clear(); option

And, while probably App related although I have only tested with NodeJS scripts, Map centering and zooming to last placed pin still not working on Android.