Titanium.Map.HYBRID_TYPE on android
doesn't work or isn't recognized, only get the standard map-type
2 Answers
-
Android doesn't differentiate between the two types.
-
Just a heads up in case anyone searches for this. In 1.6.2 (and the latest 1.6.3 — as of today), in order to get the Hybrid view on Android you need to set it to Titanium.Map.SATELLITE_TYPE. Test the code below on Android to test it:
var win = Titanium.UI.createWindow(); var mapView = Titanium.Map.createView({ mapType: Titanium.Map.SATELLITE_TYPE, region:{ latitude:40.78086937213752, longitude:-73.97360801696777, latitudeDelta:0.036, longitudeDelta:0.036 } }); win.add(mapView); win.open();
The bug was just reported to Titanium so hopefully it will be fixed soon.