Hi,
I just tried a google map v2 on titanium android app.
I set the mapview to sydney(lat long) then i want to show the user's the current location(im in Melbourne, Australia)(and I want to set it once, not conitnously). The map zooms in to wheere the blue dot is(device's current location) but everything is grey and i zoom out and the map is in melbourne but it is very blurry.
Im using Samsung S4 but not sure what to do. Is it possible that its to do with internet's speed? If anyone can point me to right direction, that would be great.
Thanks heaps in advance.
var MapModule = require('ti.map'); var Cloud = require('ti.cloud'); var win = Ti.UI.createWindow({ fullscreen : true, backgroundColor:'#ffffff' }); var mapView = MapModule.createView({ userLocation: true, mapType: MapModule.NORMAL_TYPE, // mapType: MapModule.TERRAIN_TYPE, animate: true, // originally it is set to sydney with its lat long region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.001, longitudeDelta: 0.001 }, height: '100%', //userLocation: true, top: 0, right: 0, width: '100%' }); function getLocation(){ Titanium.Geolocation.getCurrentPosition(function(e){ var currentlatitude = e.coords.latitude; var currentlongitude = e.coords.longitude; // some code to update user's city in Appcelerator Cloud var region={ latitude: currentlatitude, longitude: currentlongitude, animate:true, latitudeDelta:0.05, longitudeDelta:0.05 }; mapView.setLocation(region); }); } win.add(mapView); win.addEventListener('open',function(){ getLocation(); });