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

Where to pass in geo data. #10

Open
gt3240 opened this issue Jun 26, 2017 · 2 comments
Open

Where to pass in geo data. #10

gt3240 opened this issue Jun 26, 2017 · 2 comments

Comments

@gt3240
Copy link

gt3240 commented Jun 26, 2017

Hello,
First of all, nice work on the clustering. I'm just exposed to recompse and not sure where to pass in the geo data I get back, can I get some pointers?

Thank you.

@gt3240
Copy link
Author

gt3240 commented Jun 29, 2017

Figured out to pass it in the withState property.

withState(
    'markers',
    'setMarkers',
    ({providers}) => providers.map((item, index)=>({
			id: index,
			lat: item.addresses[0].latitude,
			lng: item.addresses[0].longitude
		}))
),

@kunokdev
Copy link

kunokdev commented Sep 4, 2017

Where did you get data from? How do I read that data from container's state or redux? In example it loads data from static file import, but I currently I am unsure how to pass parent data the clean way?

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