Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Add setOnInfoWindowClickListener()  #2448

Closed

Description

@tobrun

Needed for parity with Google Maps, they expose a method setOnInfoWindowClickListener on MapView, Our current implementation uses a method directly on Marker:

  marker.setInfoWindowOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View view, MotionEvent motionEvent) {
                Toast.makeText(getApplicationContext(), "Custom Info Touch Listener!!", Toast.LENGTH_SHORT).show();
                marker.hideInfoWindow();
                return true;
            }
        });

Activity

  1. added
    Android
    on Sep 29, 2015
  2. modified the milestones: , , android-v2.0.0, android-v2.1.0 on Sep 29, 2015
  3. self-assigned this
    on Oct 10, 2015
  4. changed the title [-]Add OnInfoWindowClickListener [/-] [+]Add OnInfoWindowTouchListener [/+] on Oct 10, 2015
  5. bleege commented on Oct 10, 2015

    @bleege
    Contributor

    @tobrun I don't see the method setOnInfoWindowClickListener() in the Google Map MapView API. I do see it on the GoogleMap class however. Since the Mapbox SDK doesn't currently have a corresponding "MapboxMap" object but instead relies on direct access to MapView I don't think we need to implement this now.

    Let's close this for now and re-open it in the future if / when the "MapboxMap" concept is built. As part of that I'm going to move the first commit I made on a dev branch (regarding moving InfoWindow classes to annotations package) to a different ticket.

  6. 9 remaining items

  7. removed this from the android-v2.2.0 milestone on Oct 16, 2015
  8. ljbade commented on Oct 16, 2015

    @ljbade
    Contributor

    Hitting this in #2546

  9. added a commit that references this issue on Oct 16, 2015
    93c0953
  10. assigned and unassigned on Oct 16, 2015
  11. bleege commented on Oct 16, 2015

    @bleege
    Contributor

    This is being moved to android-v2.2.0 per #2546 (comment)

  12. added a commit that references this issue on Nov 6, 2015
    7a2bb60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Android

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions