mapsplugin / cordova-plugin-googlemaps

Google Maps plugin for Cordova
Apache License 2.0
1.66k stars 913 forks source link

Fix tap on polyline #2847

Open boblepepeur opened 3 years ago

boblepepeur commented 3 years ago

According to my issue -> https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2845

I use the lib & possibility of google map sdk native plugin on ios. When you have a lot of polylines in your map, the previous fonctionnality of this cordova plugin to try to calculate if click is on polyline don't work, so i use the native default functionnality with didtabOverlay event. The only default of my solution is that i cannot find the position clicked by user, the google map sdk plugin don't give the position clicked. So i return the center of the clicked polyline.