thydzik Google Map thydzik Google Map

thydzik Google Map

Created by: Travis Hydzik

Rating:
Downloaded: 7k times

Rewritten code supporting latest WordPress and Google Map API v3 features!

thydzikGoogleMap is a WordPress plugin that creates inline Google maps in your WordPress posts. With advantages over other existing Google maps plugins being;

  1. Ease of use, to create a Google map simply type ‘thydzikGoogleMap(mapdata.xml)’ (case insensitive) in your post on its own line.
  2. Uses XML map data, this allows for maximum configurability, and supports multiple coloured and numbers makers and polylines. Info windows can contain html.
  3. Supports cross-domain XML files by using a PHP proxy (your XML file can be anywhere).
  4. Google Map width, height, zoom and map type are all individually configurable.
  5. Allow readers to download gpx files which can be uploaded to GPS for easy navigation.
  6. Google Maps API v3, no key required.
    1.Support for KML files.

Official Homepage (with lots of working examples)

Notes

Comments welcome on any suggestions or bugs.

A few pointers:

* if width and height is excluded, the default width and height (460 and 345 respectively), found in the configuration page will be used.
* thydzikGoogleMap will produce a Google map only if the XML file is found, this was made so that examples i.e. thydzikGoogleMap(mapdata.xml) could be posted without producing a Google map.
* thydzikGoogleMap searches post text using the_content and replaces valid thydzikGoogleMap with HTML and Javascript to produce a Google map.
* thydzikGoogleMap produces valid XHTML.
* thydzikGoogleMap can read cross-domain XML files.

Screenshots

  • Simple configuration page
  • In your post, write on its own line 'thydzikGoogleMap(yourxmlfile.xml)'
  • Example.xml

Categories

Get New Themes & Resources