Skip to content

Instantly share code, notes, and snippets.

@srahim
Created November 22, 2013 19:35
Show Gist options
  • Save srahim/7605555 to your computer and use it in GitHub Desktop.
Save srahim/7605555 to your computer and use it in GitHub Desktop.
mapview
var win = Ti.UI.createWindow();
var Map = Ti.Map;
var map = Map.createView({
userLocation: true,
mapType: Map.NORMAL_TYPE,
animate: true,
region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.02, longitudeDelta: 0.02 }, //Sydney
top: '50%',
// top:200,
pitchEnabled: true,
rotateEnabled: true,
showsBuildings: true,
showsPointsOfInterest: true,
// width: '100%'
});
win.add(map);
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment