Google Map v1.4.7 – inline WordPress Google Maps

I have released an updated version of Google Map which allows for coloured and variable text markers, see the example below.

tgm(example.xml)

Unfortunately, it now requires FreeType being compiled into PHP. If FreeType is not installed only the default marker and markers A-Z will be usable, with anything else being replaced with the default marker.

Download the latest from the WordPress Plugin Directory.


Posted

in

by

Comments

22 responses to “Google Map v1.4.7 – inline WordPress Google Maps”

  1. Jamie Avatar
    Jamie

    I thank you for the plugin-I only have the problem of marker not showing, just shadow?

    1. MECTILE Avatar
      MECTILE

      Jamie,

      please send me a link to your site with map, I shall have a look.

    2. MECTILE Avatar
      MECTILE

      Also, are any other users experiencing the same problem?
      Are you using the latest version?

  2. Baga Avatar

    Hello Travis, great plugin!
    I was wondering if it is possible to insert the map directly in the template files, which tag do I have to use?
    Thanks

    1. MECTILE Avatar
      MECTILE

      Baga,

      Thanks.

      What is a template file? Are you referring to a WordPress theme? It it is a theme, then it isn’t possible as the plug-in only searches posts for tGoogleMap.

      What you could do is create a dummy post with a map, then read the HTML and copy it to your theme’s template.

  3. jan Avatar
    jan

    Hi, plugin looks great but example.xml is not shown on the map. i’am using WP 2.6.5 . I’am very interessed in working with a combination of robogeo and colored markers. It would be nice to have a workflow example. best jan

    1. MECTILE Avatar
      MECTILE

      Jan,

      I have had a quick look at your site, test post. you need to type “tgooglemap(example.xml,9)”

  4. Erik Harris Avatar

    I’m having the same problem with the new version of tGoogleMap; I get a shadow, but no icon. This applies to both sites I use it on, but one example is at http://www.kungfu-silat.com/class-info, where the map is called with “tGoogleMap(../cimac.xml, 15, H)”. The XML file contents are (brackets removed to keep them from being stripped)

    -markers-
    -marker lat=”38.77387″ lng=”-77.10703″ html=”Lee District RECenter<br/>6601 Telegraph Rd<br/>Franconia, VA 22310″ label=”Lee District RECenter” icon=”1″ color=”aa0000″ /-
    -/markers-

    Also, I assume you mean 1.4.7 and not 1.7 in the post title? the version I’m using is 1.4.7.2, and is the latest version on wp.org.

    1. MECTILE Avatar
      MECTILE

      Erik, thanks for the information

      try replacing the marker.php file with the following. let me know how it goes.
      http://mectile.com/marker.zip

  5. jan Avatar
    jan

    Hi thanks for your fast reply – but it’s still not working. I pasted the code tgooglemap(example.xml,9) and changed the new marker.php .
    But just get no markers. best jan

  6. MECTILE Avatar
    MECTILE

    Hi Jan

    Please try replacing tGoogleMap.php in the plugin folder with the following. Let me know how it goes.
    http://mectile.com/tGoogleMap.zip

  7. bineet Avatar
    bineet

    how we can make example.xml file and where we upload it.
    can we use this plugin in our local server?.

    thanks

    1. MECTILE Avatar
      MECTILE

      follow the formating of example.xml, it is quite straight forward.

      You can use the plugin in your local server, make sure to copy all the files to your WordPress plugins directory.

  8. computermdbismarck.com Avatar
    computermdbismarck.com

    Well i’m going install that plugins too.. Nice post my friend.. =)

  9. Stephen Avatar
    Stephen

    Hi–

    I am wondering if it is possble to have the text in the popup link out to another site– for example with clicking on the $ in the above map having Perth Mint?

    Thanks for a might fine plugin!
    Stephen

  10. MECTILE Avatar
    MECTILE

    Hi Stephen,

    Sorry it took so long to get back to you.

    Yes!, it is possible and has aways been possible. See the updated map 🙂

    Though you need to convert the HTML entities first,
    I found two sites that can do this for you.
    http://www.functions-online.com/htmlentities.html
    http://www.dan.co.jp/cases/javascript/encode_entities.html

    So for your example the code:

    <a href="http://perthmint.com.au&quot; rel="nofollow">Perth Mint</a>

    would look like:

    &lt;a href=&quot;http://perthmint.com.au&quot; rel=&quot;nofollow&quot;&gt;Perth Mint&lt;/a&gt;

  11. Scooraddini Avatar
    Scooraddini

    Fantastic – very cool topic. I will write about it also!

  12. Patrick Avatar
    Patrick

    This script is fantastic! I do have an issue with an error coming from the system that I can’t seem to figure out.

    Error:
    Warning: parse_url() expects exactly 1 parameter, 2 given in /home/sarelay/public_html/wp-content/plugins/t-google-map/tGoogleMap.php on line 79

    Link to page with error:
    http://sarelayforlife.org/?p=1

    This is the link to my XML file:
    http://www.sarelayforlife.org/wp-content/plugins/t-google-map/example.xml

    This is code I am using to load the map:
    tGoogleMap(example.xml, 580, 480)

    Any ideas?

    This is for the American Cancer Society. I am just building in the mapping functionality on a very unedited template 🙂

  13. Kraig Avatar
    Kraig

    I’m having the same issue as others – no marker on the map, just the shadow. I know that this was working many months ago, and I only recently looked at the map area of my client’s site again. Here’s an example: http://www.sppa.com/beacon-bluff/map/

    I have tried this with several browsers and different computers. No joy with any of them.

    I tried downloading the files you mentioned above, but they are identical to what I have installed on my site, except for the version number in “tGoogleMap.php”.

    I even tried replacing the image reference in your “marker.php” with a static PNG file on my server. Still no joy.

    Any ideas?

    Thanks,
    Kraig

  14. MECTILE Avatar
    MECTILE

    Hi Patrick and Kraig, your comments are appreciated.

    I will look into when I have a chance and get back to you both.

    Travis

  15. MECTILE Avatar
    MECTILE

    Kraig,

    I think I have found the problem,
    Please download marker.php from here and let me know if it fixes the problem.

    http://mectile.com/tGoogleMap/marker.zip

    Travis

    Edit: if you still have that static marker file on your server, try renaming it to php extension, I think it would also work. let me know.

  16. MECTILE Avatar
    MECTILE

    Patrick,

    Please try replacing the tGoogleMap.php file with the one below
    http://mectile.com/tGoogleMap/tGoogleMap.zip

    let me know how it goes.

    Travis

Leave a Reply

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