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
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
intiapp.xml
3. OpenResources/ui/common/baseui/map_view.js
and adddraggable: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 olderConfirmed on an iPad Air running iOS 8.1.2, using both ti.map 2.0.6 and 2.2.0
[~ingo], can we get this scheduled?
I have this as a serious problem as well +1
Hi, may I ask how's the progress, urgently need this method for coming app release, thanks
Having serious trouble with this bug to! +1
PR: https://github.com/appcelerator-modules/ti.map/pull/82
PR merged, zip needs to be added to releases.
[~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
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
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
reopening to correct comment