Hello
I can’t find the solution for auto scaling the map on my current position.
I get lat and long with the sensor locator but when I put these paremeters in the set(Map) position, the screen doesn’t show the position… and the first screen on the map is always on the same position…
Can I refresh the map to the new position automatically ??
The addmarker block is going to fire immediately after the GetCurrentLocation block starts. Not when it finishes… when it starts. The timing is going to be off. Also, more importantly, green blocks only have values within the function they are attached to. So outside of the GetCurrentLocation block, they won’t have any values and will be null.
This should have a simple fix: move the addMarker block into the then do section of the GetCurrentLocation block so that it forces it to fire after the GetCurrentLocation block populates the green blocks with values.