Code Monkey home page Code Monkey logo

Comments (7)

adidoes avatar adidoes commented on August 23, 2024 1

I have this issue too and I'm not using TiShadow. Do you still encounter this?

from ti.map.

bitfabrikken avatar bitfabrikken commented on August 23, 2024

Closing as I think this is due to running the app in TiShadow .

from ti.map.

designbymind avatar designbymind commented on August 23, 2024

Hi @bitfabrikken,

Would you consider re-opening this issue?

I too am getting an app crash when starting to drag an annotation (not using TiShadow)...

Environment:
ยท Ti SDK 6.0.0.GA
ยท iOS 9.3/10 (device & simulator)
ยท ti.map 2.8.0

Thank you!

ยท Jason ๐Ÿ™‚

from ti.map.

bitfabrikken avatar bitfabrikken commented on August 23, 2024

@designbymind have you tried removing the eventlistener pinchangedragstate from the map, and seeing if it works?

from ti.map.

designbymind avatar designbymind commented on August 23, 2024

@bitfabrikken โ€” prior to commenting, for some strange reason, I hadn't thought to try that out...

Below are the results I am getting without eventlistener pinchangedragstate attached to a ti.map view:

  • draggable:true property does work as expected
  • if an eventlistener click is attached to the ti.map view:
    • when beginning the drag state, e.clicksource returns map (and the correct initial e.annotation properties (latitude/longitude) are provided)
    • when ending the drag state, e.clicksource returns pin (and the new/correct e.annotation properties (latitude/longitude) are provided)

Seems like that 2nd firing of the click eventlistener (after the drag has completed) could be considered an unwelcomed one?

from ti.map.

hansemannn avatar hansemannn commented on August 23, 2024

@designbymind Please file a JIRA issue for this if you feel this is incorrect. That's the only way we can schedule and fix your (possible) issue. Thx!

from ti.map.

hansemannn avatar hansemannn commented on August 23, 2024

For the map/pin clicksource, it's a native behavior caused by the mapView:didDeselectAnnotationView: being called when you start dragging. iOS interprets the gesture as deselecting the annotation because of the dragging, so this is the intended behavior to get the map clicksource again. When you stop dragging (releasing the annotation), the annotation gets natively selected again and the clicksource is pin again. I hope that helps a bit!

from ti.map.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.