Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19011

Android: MapView is blank if the container view has rounded borders

    Details

    • Story Points:
      8
    • Sprint:
      2015 Sprint 23 SDK

      Description

      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

      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();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ssombhatla Srikanth Sombhatla (Inactive)
                Reporter:
                landimatte Matteo Landi
                Reviewer:
                Hieu Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-19981
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code