Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map doesn't allow for dragging around when map is in a UICollectionView and CollectionView. #520

Open
liamcharmer opened this issue Oct 7, 2022 · 3 comments

Comments

@liamcharmer
Copy link

Hello! I am using Carto maps but via NativeScript and a plugin made for the maps. I try to put the Map inside a collection scrolling view however the map doesn't allow me to drag around.

I created an issue here: nativescript-community/ui-carto#2 (comment) With the plugin, however it seems that potentially the issue is with the SDK?

For reference this is what should be used to make it work https://developer.apple.com/documentation/uikit/uiview/1622453-exclusivetouch. But i tried and it does not seem to work.

Though I am not experienced enough to try Carto outside of nativescript which isn't very helpful.

@farfromrefug
Copy link
Contributor

@mtehver to bring some context into this. @liamcharmer presented it from Nativescript but i think the issue is native.
@liamcharmer could you change the title to mention UICollectionView and CollectionView. Carto Mobile Sdk has no notion of Nativescript so we need to talk "native".

So from what i have seen around the way a view defines that it should prevent scrolll within UIScrollView and UICollectionView is with UIView.exclusiveTouch
It seems to be on by default for google maps and mkmapview. And it is working fine.
Now it does not seem to work with carto. Actually it does work for the first touch "moves" and after a few pixels move it stops and the UICollectionView start scrolling. Once you did it once the map will never intercept the touch.

I did not have time to test it with the iOS sample carto apps, so for now only tested within Nativescript.

@liamcharmer liamcharmer changed the title Map doesn't allow for dragging around when map is in a CollectionView. Map doesn't allow for dragging around when map is in a UICollectionView and CollectionView. Oct 7, 2022
@mtehver
Copy link
Contributor

mtehver commented Oct 10, 2022

Based from the description, it seems it could be a SDK issue. But as I have no experience with NativeScript, I would need a native iOS testcase (either ObjC or Swift based) to investigate this further.

@farfromrefug
Copy link
Contributor

@liamcharmer could you try and create an iOS sample app ?

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

No branches or pull requests

3 participants