Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Titanium.Map.HYBRID_TYPE on android

doesn't work or isn't recognized, only get the standard map-type

— asked June 20th 2010 by Christian Sigl
  • android
  • hybrid
  • maptype
0 Comments

2 Answers

  • Android doesn't differentiate between the two types.

    — answered June 20th 2010 by Don Thorp
    permalink
    1 Comment
    • does this mean, that hybrid-view as in the webversion of google maps isn't possible on android?

      — commented June 20th 2010 by Christian Sigl
  • 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.

    — answered May 10th 2011 by brian kurzius
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.