Google Maps is the most common platform implementation and the one both Android and the iPhone platforms utilize. Here we will implement a mapView by providing lattitude and longitude of a particular region.
Let us create a view
//create our mapview
var mapview = Titanium.Map.createView({
top: 110,
height: 350,
mapType: Titanium.Map.STANDARD_TYPE,
region: {latitude: 26.00,
longitude:94.00,
latitudeDelta:0.5,
longitudeDelta:0.5}
});
Add this view to a window and then open the window.
Here the lattitude and longitude are the properties of Region, by which we can get the exact location of the place. The delta values indicate the zoom level of the map.
There are many mapView types given below :
1. TITANIUM.MAP.STANDARD_TYPE
2. TITANIUM.MAP.SATELLITE_TYPE
3. TITANIUM.MAP.HYBRID_TYPE