Git Product home page Git Product logo

Comments (8)

marcinkolonko avatar marcinkolonko commented on August 22, 2024

that's not exactly true. right now it's only a drag, when the distance is greater then MapView.SINGLE_TAP_DISTANCE_THRESHOLD - if it's less then that, it's considered a tap.

from mapview.

Shusshu avatar Shusshu commented on August 22, 2024

Then how come I'm having a lot of trouble tapping on a marker

from mapview.

marcinkolonko avatar marcinkolonko commented on August 22, 2024

i don't know what your markers look like, and if you set a custom layout. see my issue #12

from mapview.

Shusshu avatar Shusshu commented on August 22, 2024

That's sounds interesting, I will look more into it

I did more testing and actually the touch event works well but you need to press above the marker

it's a normal behaviour in android the touch always need to be exactly on the button.

Humans tends to press below the element they are seeing.

In iOS you need to press below the element you touch in other words you need to keep the element in the line of sight.

from mapview.

moagrius avatar moagrius commented on August 22, 2024

If you prefer to have it not intercept, you could extend it and just override onInterceptTouchEvent to return false...

public class MyMapView extends MapView {
public MyMapView(Context c){
  super(c);
}
@Override
public boolean onInterceptTouchEvent (MotionEvent event) {
  return false;
}
}

We could add this as a settable property possibly...

from mapview.

Shusshu avatar Shusshu commented on August 22, 2024

Yes that works well using the lib as a jar
I'll use MyViewMap until there is a better solution

from mapview.

moagrius avatar moagrius commented on August 22, 2024

Since I suspect the onInterceptTouchEvent is causing 3 of the currently open issues, I'm definitely going to add a method to turn this on or off (and probably default to off), as soon as I get a moment. I'll leave this issue open until I've done so. Thanks!

from mapview.

moagrius avatar moagrius commented on August 22, 2024

this is now off by default, but can be enabled with setCacheEnabled(boolean)

from mapview.

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.