1
votes

I have a Fusion Table of about 1000 entries, and I show them on a map using a FusionTablesLayer. I want to produce a list of the five closest markers to the center of the map. Clicking a list item should produce an info window for the corresponding marker. It looks a lot like the first sample on this site: https://developers.google.com/maps/location-based-apps

But if I remember correctly, Layers don't allow acces to individual markers. On the other hand, if I use an Overlay the rendering of the 1000 markers has to be done client-side and obviously I don't want that.

How do I do this? Make an Overlay for the 5 markers and a FusionTablesLayer for the rest?

1

1 Answers

3
votes

Here is an example showing the 10 closest markers to the center of the map.

Here is an example that does the sidebar.

Here is an example that combines the two.