Project: titanium
Issue TIMOB-19011: Android: MapView is blank if the container view has rounded borders
I recently tried to put a mapview inside another view with rounded borders (ie. with `borderRadius` set), and the result was that the mapview ended up being _blank_ (ie. no map tiles, just the Google logo and the zoom controls). Everything works fine when I remove the `borderRadius` property from the container view. Attached a minimal application that shows the problem. Let me know if you need anything else. Ciao, Matteo {code:title=index.js} var map_view = Ti.UI.createView({ height: Ti.UI.FILL, width: Ti.UI.FILL, }); var map = require('ti.map').createView({ height: Ti.UI.FILL, width: Ti.UI.FILL, }); var button = Ti.UI.createButton({ height: Ti.UI.SIZE, title: 'Set borderRadius' }); button.addEventListener('click', function() { map_view.borderRadius = '30dp'; }); var container = Ti.UI.createView(); var win = Ti.UI.createWindow(); map_view.add(map); container.add(map_view); container.add(button); win.add(container); win.open(); {code}
Story points: 8