Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

ti.map module: change the size of the map according to the delta

$
0
0

Hello, I need to display a portion of the map indicating the current position and the delta. I would like the size of the map would change according to the delta. For example, if I have:

// tss
"# mapview": {
    maptype: Alloy.Globals.Map.NORMAL_TYPE, 
    height: "200dp" 
} 
 
// js
$. mapview.setRegion ({
    latitude: 45.54, 
    longitude: 9:54, 
    latitudeDelta: 0.5, 
    longitudeDelta: 0.5 
});
I would like the height to remain fixed, and the width of the mapview was updated automatically according to the delta.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>