This small project shows how to pass data between lightning component and visual force page.
NOTE : You might need to modify the field names if necessary. To maintain the ease, I have used most common fields.
- ContactList component bundle -> contains component(UI) + js to show the list of contacts
- Visualforce page to hold the map -> ContactMap.vf
- Controller class (Combined for component and vf page) -> Integrator.apxc
- Application event component -> MapAlert.evt
I have used this in the community page. Both components are hosted on the same community page