tGoogleMap version 1.4 has been released with two major improvements.
- Manual zoom parameter added. Google uses an integer value from 0 to 17 (where 0 is the furthest away), to determine the map’s zoom level, this value can now be incorporated into tGoogleMap as follows: tGoogleMap(example.xml, 4). The zoom is an optional parameter and if left out the automatic zoom calculation will be used as before. The width and height of the map can still be added if desired as tGoogleMap(example.xml, 4, 480, 640) or tGoogleMap(example.xml, 480, 640, 4).
- The tGoogleMap code is disabled if the site is viewed from a proxy, i.e. Google cache. Before a user viewing the blog would receive ‘The Google Maps API key used on this web site was registered for a different web site. You can generate a new key for this web site at http://code.google.com/apis/maps/.’ tGoogleMap now detects this and disables the maps.
Example with the new zoom functionality
tGoogleMap(example.xml, 4)
Future improvements will include
- Option of choosing Map, Satellite or Terrain
- Disabling all code if no tGoogleMap are present
- Creating multiple maps in a single blog post
Leave a Reply