This update adds Autozoom functionality to the Google Maps Plugin for jQuery.
Automatically center and zoom GMap to fit all markers. Autozoom will look to use latitude & longitude for each marker first, otherwise it will get the coordinates using the address field via the Google Maps API geocoder.
You can set either the latitude & longitude or address for the map and the default zoom level. If neither the latitude & longitude or address is specified, the map will center on the first marker.
What is gMap?
gMap is a lightweight jQuery plugin that helps you embed Google Maps into your website. With only 2 KB in size it is very flexible and highly customizable.
One property has been added to the gMap() function. For full usage documentation, refer to the gMap documentation.
- autozoom: boolean
- Default: true
If true, the map will autzoom and center to fit all markers. If "latitude" latitude & longitude or address specified, those will be used instead of the marker list.
gMap is licensed under Creative Commons BY-SA 3.0 license. In short: You're allowed to copy, distribute, transmit and to adapt - as long as you attribute the work. If you alter, modify or build upon this sourcecode, you may distribute the resulting work only under the same, similar or compatible license.