Automatically Center Map
bcking - June 2, 2007 - 12:30
| Project: | GMap Module |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
Add option to gmap center macro called 'auto'. Instead of putting in additional coordinates to center the map, use the waypoint itself as the center location. When listing a single waypoint this can be very to implement and extremely useful.
Later, if you want to get fancy then design to center on a group of waypoints.
I didn't find this option in the small amount of reading included in the gmap macro download. For what I want to do with gmap I can't think of any situation I'd never want to have the map automatically centered.
Any takers?

#1
Also, I noted that if no center point is selected in the gmap settings page then a gray map is displayed. This would be a good place to implicitly activate center=auto.
#2
Behavior flag autozoom handles centering as well.