Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2377] iOS: createCircle method is not working for Ti.Map module

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionCannot Reproduce
Resolution Date2020-03-04T08:34:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMostafizur Rahman
AssigneeUnknown
Created2017-12-07T21:21:07.000+0000
Updated2020-03-04T08:34:09.000+0000

Description

Hello, Recently we have found that createCircle method is not working for Ti.Map module. We have tested the issue in the following environment: *Test Environment:* Operating System Name = Mac OS X Version = 10.13 Architecture = 64bit # CPUs = 4 Memory = 8589934592 Node.js Node.js Version = 6.10.3 npm Version = 3.10.10 Titanium CLI CLI Version = 5.0.14 Titanium SDK SDK Version = 6.3.0.GA *Test Code:*
var Map = require('ti.map');
var win = Titanium.UI.createWindow();

var mountainView = Map.createAnnotation({
    latitude:37.390749,
    longitude:-122.081651,
    title:"Appcelerator Headquarters",
    subtitle:'Mountain View, CA',
    pincolor:Map.ANNOTATION_RED,
    myid:1 // Custom property to uniquely identify this annotation.
});

var mapview = Map.createView({
    mapType: Map.NORMAL_TYPE,
    region: {latitude:33.74511, longitude:-84.38993,
            latitudeDelta:0.01, longitudeDelta:0.01},
    animate:true,
    regionFit:true,
    userLocation:true,
    annotations:[mountainView]
});

var circle = Map.createCircle({
    center: { latitude: 33.74511, longitude: -84.38993 },
    radius: 250,
    strokeWidth: 1,
    strokeColor: '#AD5A00',
    fillColor: '#FF8400'
});
mapview.addCircle(circle);

win.add(mapview);
// Handle click events on any annotations on this map.
mapview.addEventListener('click', function(evt) {
    Ti.API.info("Clicked " + evt.clicksource + " on " + evt.latitude + "," + evt.longitude);
});
win.open();
Also use the test code from [this](https://gist.github.com/hansemannn/8937df4f33bcbb8f9327879d90c5224c) Link *Test Result:* The circle is not showing on the Map. *Expected Result:* The Circle shows on the Map.

Comments

  1. Hans Knöchel 2017-12-09

    I just tested with [Ti.Map iOS 3.0.1](https://github.com/appcelerator-modules/ti.map/releases/tag/ios-3.0.1) and it works fine. Please validate with that version.
  2. Ewan Harris 2020-03-04

    Closing as cannot reproduce on latest 9.0.0 and ti.map 3.3.0

JSON Source