tGoogleMap v1.4

tGoogleMap version 1.4 has been released with two major improvements.

  1. 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).
  2. 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

Grab the latest from the WordPress repository.


Posted

in

by

Comments

One response to “tGoogleMap v1.4”

  1. Mrzpro Avatar
    Mrzpro

     I’ve installed and configured the plugin but when I’ve tried to use I’ve obtained the following error:

    Fatal error: Call to undefined function curl_init() in
    /home/mhd-01/www.dagsrl.net/htdocs/wp-content/plugins/t-google-map/t-google-map.php
    on line 402

    I’ve renamed and tried to use the included file xml no changes inside made!!!

Leave a Reply

Your email address will not be published. Required fields are marked *