Automatically zooming on a map

I am also wondering if anyone has tried this. I have no problem getting a map region set. 

      aMap:setRegion (locationTable.latitude, locationTable.longitude, 2, 2, isAnimated)

But I can’t seem to get that animated part to work. It is a static map. I can disable the zooming controls on the UI. I have tried using a timer to zoom with no luck

   timer.performWithDelay (20000, aMap.setRegion (locationTable.latitude,  locationTable.longitude, 0.1, 0.1, isAnimated)) 

And I have tried transition.to functions, but they don’t seem to work for map regions.

Any solutions?

Transitions work with properties that you can set directly on the object, like:

something.x

something.alpha

Things that are passed as parameters to methods can’t be transitioned.

Rob

So I take it then that there is no way to automatically zoom on a map? 

Not that I know of.

Rob

I found out that Apple does allow automatic zooming for the IPhone. It has a span function. This seems to be a limitation of lua or corona.

Please add a feature request at http://feedback.coronalabs.com requesting enhancements like this.

Thanks

Rob

Transitions work with properties that you can set directly on the object, like:

something.x

something.alpha

Things that are passed as parameters to methods can’t be transitioned.

Rob

So I take it then that there is no way to automatically zoom on a map? 

Not that I know of.

Rob

I found out that Apple does allow automatic zooming for the IPhone. It has a span function. This seems to be a limitation of lua or corona.

Please add a feature request at http://feedback.coronalabs.com requesting enhancements like this.

Thanks

Rob