Uploaded image for project: 'Appcelerator Modules'
  1. Appcelerator Modules
  2. MOD-2164

iOS: Modules.Map.Circle updating radius doesn't effect view

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Map
    • Labels:
    • Story Points:
      5
    • Sprint:
      2016 Sprint 4 SDK

      Description

      Just stumbled upon the same issue that was reported on github https://github.com/appcelerator-modules/ti.map/issues/100

      If you change the radius property of a circle it does not update the view.

      var win = Ti.UI.createWindow();
      var Map = require('ti.map');
      var coords = {latitude: 37.3689, longitude: -122.0353};
      var radius = 1000;
       
      var map = Map.createView({
          mapType: Map.NORMAL_TYPE,
          region: {latitude: 37.3689, longitude: -122.0353, latitudeDelta: 1, longitudeDelta: 1 },
      });
      win.add(map);
       
      var circle = Map.createCircle({
            center: coords,
            radius: radius
      });
       
      map.addCircle(circle);
      win.open();
       
      setTimeout(function(){
          circle.radius = radius * 2;
      }, 3000);
      

        Attachments

          Activity

            People

            • Assignee:
              ssombhatla Srikanth Sombhatla (Inactive)
              Reporter:
              manuellehner Manuel Lehner
            • Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code