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

Carto Map doesn't work in Collection View (scrolling around) #2

Open
liamcharmer opened this issue Oct 6, 2022 · 5 comments
Open

Comments

@liamcharmer
Copy link

Heres an example repo.

https://github.com/liamcharmer/Carto-In-CollectionView-nativescript

But it doesn't seem that the map allows dragging around within a CollectionView.

@farfromrefug
Copy link
Member

@liamcharmer i have looked at it and there might be something in carto. Could you try with another map plugin?
The best would be to try with this https://github.com/tjvantoll/nativescript-maps/blob/master/maps.ios.js. Though it is not maintained anymore. If it works with other maps then it would be good to report your issue in the carto sdk repo https://github.com/CartoDB/mobile-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.

@liamcharmer
Copy link
Author

I've updated my repo to include google map (just for iOS i haven't included android files and also removed the API key to be placed).

Seems that the google maps plugin works fine in the collectionview. I'll throw an issue request into CartoDB.

For now I guess using google-maps should be fine.

@liamcharmer
Copy link
Author

I also put the map inside just a scrollview, and the same issue happens

@liamcharmer
Copy link
Author

Allows for horizontal scrolling (when inside a vertical scrollview/collectionview).

@liamcharmer
Copy link
Author

Interesting to note, I have just tested the google-maps on Android, and you are not able to scroll around within the map in the list view. So on iOS it seemed fine, but Android nope.

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

2 participants