Hi, i've read the instructions at http://docs.appcelerator.com/titanium/3.0/#!/api/Modules.Map.View that says that I just need to add "draggable" to the annotation when I want the pin to be draggable for the user.
Developing for iPhone, Ti 3.2.2.
What I want to do is to drop a pin on the user current location (And if possible, remove the "current location"-indicator) and then let the user drag the pin to a certain point so the app can get the coords from the new pin-location.
My results are that I can get the map opened and then it animates in on the user location, drops a pin where the user are at. But the pin isnt draggable.
What am I doing wrong?
addPin: function(data, current_location) { var pin_data = { animate: true }; if(data.draggable) { alert("draggable"); pin_data.draggable = true; } if(data.longitude && data.latitude) { pin_data.longitude = data.longitude; pin_data.latitude = data.latitude; } this.mapView.addAnnotation(this.MAP.createAnnotation(pin_data)); }(FYI, the result "alerts": "draggable", which means that the "draggable" is provided..)