NativeScript / NativeScript/plugins
Feature Request: Do not center map on marker when marker is tapped;
還沒有人認領這個 Issue。
- 主要語言
- TypeScript
- 星號
- 206
- 分支
- 123
- 平均合併
- 2 天 1 小時
- 30 天內合併 PR
- 1
描述
I would like to have the option to not center the map on a marker that is tapped. I am using a map without scrolling/zooming function where the user can add/remove markers to the map. Each tap of a marker (to remove it) also centers the map on the tapped marker's location.
For now, I can change index.ios.js and GoogleMaps.java files to return "true" for [mapViewDidTapMarker] (iOS) and [setOnMarkerClickListener] (Android). However, any re-installation or updating of the package jeopardizes my custom logic!
Let me know if this (exists or) is possible!
Thank you.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先閱讀 index.ios.js 和 GoogleMaps.java 中對標記點擊的處理,尤其是 mapViewDidTapMarker 和 setOnMarkerClickListener。確定如何透過一個選項控制在兩個平台上點擊標記時是否重新將地圖置中。完成的標準是:無需編輯套件檔案即可設定此行為,且現有的標記互動仍獲得支援。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, ios, java, javascript
- 領域
- mobile
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100