Skip to content

Conversation

@boblepepeur
Copy link

According to my issue -> #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.

// Since this plugin provide own click detection,
// disable default clickable feature.
polyline.tappable = NO;
polyline.tappable = [[json valueForKey:@"clickable"] boolValue];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong. If you set polyline.tappable = YES, this plugin can not get clicked latlng.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you, but the code to try to find if the click is on the polyline don't work see my git project example in #2845

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants