Skip to content

[google_maps_flutter] Add callback for click on google poi's on the map #60695

Closed

Description

@yasargil

Activity

  1. alshtrike commented on Dec 11, 2020

    @alshtrike
  2. added
    P3Issues that are less important to the Flutter project
    on Aug 16, 2021
  3. yacineblr commented on Sep 24, 2021

    @yacineblr
  4. matthiasng commented on Sep 28, 2021

    @matthiasng

    I don't plan to create a PR, because I have currently decided against Google Maps (sorry 😞).
    But for my tests, i implemented the poi click handler here: matthiasng/plugins@17ea7f3
    Feel free to use this as a starting point for a PR.

  5. dariuspo commented on Mar 14, 2022

    @dariuspo

    I don't plan to create a PR, because I have currently decided against Google Maps (sorry 😞). But for my tests, i implemented the poi click handler here: matthiasng/plugins@17ea7f3 Feel free to use this as a starting point for a PR.

    Someone please create PR from this, I tested and it's working, @matthiasng thanks a lot for your help

  6. 0radek commented on Mar 24, 2022

    @0radek

    How can I use @matthiasng solution in my own project? Do I just fork the plugins repo and update the maps code with their changes?

  7. dariuspo commented on Mar 24, 2022

    @dariuspo

    @talmr-k

    if you don't mind you can use my repo in dependencies overrides

    google_maps_flutter:
        # path: "../google_maps_flutter/"
        git:
          url: https://github.com/dariuspo/flutter_google_maps.git
          ref: main
      google_maps_flutter_platform_interface:
        # path: "../google_maps_flutter_platform_interface-2.1.5/"
        git:
          url: https://github.com/dariuspo/google_maps_flutter_platform_interface.git
          ref: main
    

    you can fork it or use it directly.
    then in dart code can use this:

    onPoiClick: (PointOfInterest poi) => getPlaceDetails(poi.placeId),

  8. 0radek commented on Mar 24, 2022

    @0radek
  9. jtkeyva commented on May 27, 2022

    @jtkeyva
  10. mattak commented on Dec 24, 2022

    @mattak

    I couldn't wait for official implementation, so I've created [google_maps_flutter#2.2.2] version fork flutter-team-archive/plugins@main...mattak:flutter_plugins_googlemap:poi_click_event_with_pubspec by referencing matthiasng/plugins@17ea7f3 .
    It works on Android and iOS but not implemented on web, because I couldn't understand how to handle the event.
    I hope the implementation would help somebody requiring this feature on latest version.

  11. 42 remaining items

  12. added 4 commits that reference this issue on Jun 13, 2026
    369cc96
    5c9424b
    bd93078
    336fb13
  13. added 4 commits that reference this issue on Jul 28, 2026
    7daf02c
    1a982ab
    2247d7a
    1215581
  14. github-actions commented on Sep 29, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Sep 29, 2026
  16. added a commit that references this issue on Oct 14, 2026
    84f9f8e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterhas partial patchThere is a PR awaiting someone to take it across the finish linep: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions