According to the docs, and apparently, though not always reliably, I can use “myMap:setRegion” to center the map on a given location with a span of a given degree in latitude and longitude.
What I cannot figure out how to do is to center the map on two locations, the map spanning the distance of those two locations.
Meaning,
My map shows “You are here” (myLocation = myMap:getUserLocation)
I add a marker “We are here” (myMap:addMarker( latitude, longitude, { title=“We are here”, subtitle=“our address” } )
I want to zoom the map to show both locations, so the user has a sense of in which direction we are.
Hopefully, one day, we will get routing; but until then, I’d like to just show my user both places on the map. With the map zoomed to show both locations at the outer visible extremes of the map view.
[import]uid: 74957 topic_id: 32821 reply_id: 332821[/import]