Simple Static Google Maps WordPress Plugin

Write a lot of bar or restaurant reviews or about anything that has an address?  This WordPress plugin will allow you to easily place a quick loading google map at the end of any post or page when desired.

Usage

The plugin looks for a value in a custom field called static_map_address

Custom Fields

If this field is left empty nothing will display.  If you enter a full address into it a static google map of the address will display at the bottom of the post or page with a link that, when clicked, displays a small form so the reader can get directions to the location.  Check out the example below on this post!

Simple Google Map

Get Directions →

29 Comments on “Simple Static Google Maps WordPress Plugin” Comments RSS Feed

  1. John says:

    Just want to say this is a great plugin. Thank you for sharing.

  2. Phil says:

    Hi Garrett,
    Im struggeling to get the plugin working with a UK address. Can you help me at all?

    Thanks,

  3. Flick says:

    Hello!

    This seems like a really great plugin that does the essentials of adding a Google Map to a website. However, for some reason, when I try and enter my address in, this error message pops up

    “Warning: Cannot modify header information – headers already sent by (output started at /LINKTO/plugins/simple-static-google-maps/simple-static-googlemaps.php:1) in /LINKTO/wp-includes/classes.php on line 1586″

    I am currently using WP 2.9.2 and the latest version of the plugin (Linux/PHP Version 5.2.12)

    Any help would be much appreciated. Thanks :)

  4. Came to this site by Google looking for answers on embedding maps on my page and just wanted to say thanks for your help!

  5. bry says:

    Experiencing similar issue with Flick. It returns this error whenever I activate a plugin, edit posts or make a post.

    —-
    Warning: Cannot modify header information – headers already sent by (output started at /home/midli1/public_html/junk5760/wp-content/plugins/simple-static-google-maps/simple-static-googlemaps.php:1) in /home/midli1/public_html/junk5760/wp-includes/pluggable.php on line 868
    —-

  6. Andreas says:

    Hi,

    I think a found the problem and a solution for the “headers already sent” problem:

    Seems that the file was create as an XML document with a UTF8 Header:

    # od -c simple-static-googlemaps.php | head
    0000000 357 273 277 < ? p h p \r \n / * \r \n P l

    PHP does not like this, cause the file does not start with "<?php"

    So solution is easy:

    Create a new file, copy everything to that file with copy and paste and rename it to simple-static-googlemaps.php

  7. wetwetwafu says:

    Sir, great plugin. how can I make the map as a popup map. some button to be click then popup and how can I position the map. It appears below the star rating. Thanks in advance.. And more power.

  8. Beth says:

    I tried using this plugin using the installation instructions here and for some reason while the address I am asking for is in Louisiana it is showing a map of NYC. When I input directions it shows the right address but the map snapshot is NYC. Can you advise?

    Thanks!!

  9. I was reading the Documentation on putting a map on my site. Than I though of looking for a plugin. I found yours and it is KISS. Wonderful simplicity at its best. Thanks loads.

  10. Paul says:

    hello, thanks for this plugin! very nice! I had a problem with certain addresses, turned out that they did not get properly escaped. Make sure to add this line before initiating the request:
    $static_map_address = urlencode($static_map_address);

  11. Tia says:

    How do you move the maps to the top of the page?

  12. thanks for the plugin.. i use the plugin on my site,, and look wonderful, go check it out.. :)

  13. Gideon says:

    how can I adjust where the map shows on the page, can I put it into a sidebar? or a column? How can I make it bigger and adjust the zoomlevel?

    thanks, was easy as it should, now I just want to adapt it ;-)

    • Garrett says:

      Hi Gideon,

      Currently the only way to adjust the map’s position is by adjusting the CSS for the map container class “listing-static-map”.

      For the next release I will incorporate a better way to move it around and add a widget so you can put it in the sidebar.

      I’ll have to check the Google API for the zoom level. I believe I can add a parameter for zoom level as well. Thanks for your comment,

      -Garrett

  14. Paul Mycroft says:

    In addition, my WP site is version 3.1.1 but I see your plugin is only compatible up to 2.9.2.

    Could that be the issue?

    Thanks!

Trackbacks/Pingbacks

  1. Alkmaar says:

    [...] Simple Google Map [...]

Leave a Reply