This could be a new feature or sub-module that integrates with the gmap and views modules.
Essentially, in a dropdown box in views it would allow a gmap to be filtered by the location taxonomization terms and zoom to the location. For instance, if it was the United States, it would center on the US. If it were Texas, it would zoom and center on Texas. At the very least, the module could center on the location.

In addition to that, since its a filter, it would be filtering.

I may write a custom php views filter for this anyway, if I do, someone could turn it into a module. I'll keep you posted.

Comments

axgalloway’s picture

Okay, so after some research and testing. This kind of can be done with the autozoom Gmap module feature. I turned autozoom on, and it tries zooms and centers to a level where all the displayed markers show. When it is filtered, it zooms and centers over the remaining set of markers.

However, my big issue with this solution is that it is unrefined and inelegant. Ideally, I could make some setting to autozoom when filtered by such and such exposed filter or just a toggle for filters in general. This is because I may not want to start the map with autozoom turned on. This issue is important, as how the map starts out, may be different than how I want the filters to later act. Also, marker levels and how they are filtered have a role in this too I imagine, see this other issue of mine http://drupal.org/node/1538728

axgalloway’s picture

Status: Active » Closed (won't fix)

Also, I think this is a Gmap issue perhaps too now...

goron’s picture

Status: Closed (won't fix) » Closed (works as designed)

Yes, this sounds like a Gmap issue/feature request. Doesn't have to do with LT functionality.