Em-Ant / fcc-options-app

Options Inc. web app development
Other
12 stars 7 forks source link

Clicking on a consumer doesn't open cluster info window #30

Closed andrealonzo closed 8 years ago

andrealonzo commented 8 years ago

Right now, cluster info windows open only if the cluster is in the currently viewable map. If you try to click on a consumer that is in a cluster that is not in the viewable map, the map will just pan to the cluster, but the info window will not appear.

This bug is happening because clusters outside the currently viewable map don't get calculated. I think the best way to handle this is to do the following:

  1. Pan to the consumer marker
  2. Wait til the cluster is generated
  3. Check if marker is in a cluster
  4. Open cluster info window if marker is in a cluster
andrealonzo commented 8 years ago

fixed with 3129397703aa0cef81ed6ed7557a52b74f4d7b8a