Using Zoom Function
8 views (last 30 days)
Show older comments
What I'm trying to do is pull a static image from google maps and then update it based on if the user zooms in on a particular location with a higher resolution picture of the zoomed in area.
My issue is that I'm not exactly sure from the documentation how the zoom method works when an area to be zoomed in on is boxed rather than clicked. If clicked the default zoom is 2x, is there a default zoom for the box? Or is there a function or easy way of calculating this zoom level?
0 Comments
Accepted Answer
Titus Edelhofer
on 14 Jun 2011
Hi,
you will need to implement a post-zoom callback. Take a look at the doc for zoom and there especially at Example 5: it shows how to execute a callback after the zoom (use xlim and ylim to get the "new" zoomed in area).
Titus
0 Comments
More Answers (1)
See Also
Categories
Find more on Data Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!