Well… this time I was I was testing this users code… minus the extra display widgets.
void sendToBlynk(){
float lat = 51.507351;
float lon = -0.127758;
int index = 1;
myMap.location(index,(lat+counter/10000.0),lon,String(lat+counter/10000.0,6));
counter++;
}
But is the same issue with different code on my RPi with NodeJS. As in the pin moves, but the map will not automatically center on new pin, or groups of pins.
// ----- Map pin -----
var mapButton = new blynk.VirtualPin(15); // Button Widget for Map
var mymap = new blynk.WidgetMAP(14); // Setup Map Widget
mapButton.on('write', function(param) { // Watches for virtual map button
if (param == 0) { // If Button OFF
//mymap.clear();
mymap.location(0, 0, 0, "Nowhere");
term.write('Map OFF' + '\n\n');
} else if (param == 1) { // If Button ON
mymap.location(0, latitude, longitude, "Me Here Now"); // pulled from the phones position
term.write('Placing Map Pin' + '\n');
term.write('Lat: ' + latitude + ' Lon: ' + longitude + '\n\n');
}
});