blynkkk / blynk_Issues

6 stars 6 forks source link

Problems with Location datastream and Map widget #104

Closed mikesoniat closed 3 years ago

mikesoniat commented 3 years ago

My map widget was working fine on the old app. Now:

Web: I setup a datastream "Location" type connected to my MapWidget virtual pin. It connected up automatically when I added a map widget to the web dashboard. Looks good, but no data is being received on my device dashboard.

New App: When I add a map widget, the "Location" pin is not showing up as an option. All other V pins are showing up Doubles and Strings.

I tried both:

WidgetMap myMap(V12); myMap.location(map_index, latitude, longitude, "value");

and

Blynk.virtualWrite(V12, map_index, latitude, longitude, "value");

Same result on both.

Any ideas?

doom369 commented 3 years ago

@mikesoniat when the Location DataStream created you need to set it as raw DS:

screenshot-blynk-qa com-2021 05 28-20_17_05

We will fix it in the next build. So we don't confuse the people.

Real-time updates for the map are not yet implemented. Will be implemented soon as well.

Correct usage would be:

Blynk.virtualWrite(V12, longitude, latitude);

mikesoniat commented 3 years ago

Thank you for your quick response. BTW, I love the new UI!

doom369 commented 3 years ago

@mikesoniat thanks! I'll update this ticket when we'll fix the issue. Meanwhile, I updated the doc with additional info on how to update the map:

https://docs.blynk.io/en/web-dashboard/products/dashboard/map#insert-the-data

doom369 commented 3 years ago

@mikesoniat both issues are fixed. Now new Location DS isRaw == true by default. Also, the map now supports real-time updates. Please let me know if it works as expected. Please reopen if not fixed.

mikesoniat commented 3 years ago

I'm not sure if I'm just missing something. The web UI seems to work great, but my Location virtual pin (V12) is still not available on the iOS app. See below:

Datastream image

Web Map Settings image

iOS Map Settings iOS App Map Settings

doom369 commented 3 years ago

@eepetrash, please take a look

eepetrash commented 3 years ago

Added Location datastream support for Map widget in iOS build 3.1.2(5) Available now in TestFlight: https://testflight.apple.com/join/x1xZdnzx

mikesoniat commented 3 years ago

Works great! Thank you!