Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18510] Map pin not draggable in iOS 8.1.1

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-03-13T18:29:49.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sRelease 4.0.0
ComponentsiOS
LabelsTCSupport, annotation, draggable, dragging, ios, mapView, pin
ReporterJamie Druce
AssigneePedro Enrique
Created2014-12-02T10:20:34.000+0000
Updated2015-03-13T18:29:49.000+0000

Description

Problem Description

A map annotation with draggable set to true is not actually draggable.

Steps to reproduce

Hello, We have tested this issue with iOS 8.1.2 device. We have observed some issue.

Steps to reproduce

1. Create a new project. 2. Enable ti.map module to the project 3. Replace app.js contents with :
var Map = require('ti.map');
 
var win = Ti.UI.createWindow();
 
var mountainView = Map.createAnnotation({
    latitude : 37.390749,
    longitude : -122.081651,
    title : "Appcelerator Headquarters",
    subtitle : 'Mountain View, CA', 
    image  : 'KS_nav_views.png',
    draggable : true
});
 
var mapview = Map.createView({
    mapType : Map.STANDARD_TYPE,
    region : {
        latitude : 37.390749,
        longitude : -122.081651,
        latitudeDelta : 0.04,
        longitudeDelta : 0.04
    },
    animate : true,
    regionFit : true,
    userLocation : true,
    annotations : [mountainView]
});
 
win.add(mapview);
 
win.open();
4. Run the project in iOS DEVICE running iOS 8.1+

Actual results

The application run with displaying annotation. Tapping on the annotation will display the annotation title and sub title. Now clicking for one second on the annotation will enable the pin to drug and place anywhere in the map. Now when the pin in drugged and placed on another place, now the mapview moves freely without the pin moving with it. The pin does not stuck on a new place after it's being dragged.

Extra info

As also raised in this community question https://developer.appcelerator.com/question/173037/map-pin-draggable-not-working, A map annotation with draggable set to true is not allowing users to move it. Setting a click event to log the annotations properties confirms that draggable is set to true . My testing has shown that all works fine in iOS 7 and even iOS 8.1.0, but fails in iOS 8.1.1

Comments

  1. Fokke Zandbergen 2014-12-09

    Confirmed on an iPad Air running iOS 8.1.1, using 3.4.1.GA as the SDK. Test case: 1. Use the Kitchen Sink project. 2. Add ti.map in tiapp.xml 3. Open Resources/ui/common/baseui/map_view.js and add draggable:true to the annotations 4. Run on a iOS 8.1.1 device and note the pins not being draggable Works fine on iOS Simulator 8.1 and devices running iOS 8.1.0 or older
  2. Fokke Zandbergen 2014-12-12

    Confirmed on an iPad Air running iOS 8.1.2, using both ti.map 2.0.6 and 2.2.0
  3. Fokke Zandbergen 2015-02-02

    [~ingo], can we get this scheduled?
  4. John Dalsgaard 2015-02-04

    I have this as a serious problem as well +1
  5. Wilson Liaw 2015-02-13

    Hi, may I ask how's the progress, urgently need this method for coming app release, thanks
  6. Dennis Bergström 2015-02-18

    Having serious trouble with this bug to! +1
  7. Pedro Enrique 2015-02-19

    PR: https://github.com/appcelerator-modules/ti.map/pull/82
  8. Jon Alter 2015-03-11

    PR merged, zip needs to be added to releases.
  9. Jon Alter 2015-03-12

    [~pec1985] - Release looks good. Can you create a PRs for the master and 4_0_X branches to update titanium_mobile and then update titanium_releases
  10. Jon Alter 2015-03-12

    titanium_mobile PRs: master: https://github.com/appcelerator/titanium_mobile/pull/6716 4_0_X: https://github.com/appcelerator/titanium_mobile/pull/6717 titanium_releases master updated: https://github.com/appcelerator/titanium_releases/blob/master/titanium.json
  11. Lokesh Choudhary 2015-03-13

    Verified the fix. The map pin is now draggable as expected. Closing. Environment: Appc Studio : 4.0.0.201503062102 Ti SDK : 4.0.0.v20150313093410 CLI : 3.5.0-dev Alloy : 1.5.1 MAC Yosemite : 10.10.2 Iphone 4S - IOS 8.1.1 Iphone 6 Plus - IOS 8.1.3 Map module : 2.2.1
  12. Lokesh Choudhary 2015-03-13

    reopening to correct comment

JSON Source