Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
Flag it:
If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!
rss_google_map
The rss_google_map plugin displays locations on a Google Map. It can either display a single location as passed into the plugin, or multiple addresses from articles.
Option 1
- When calling the plugin, specify the address, city, state and zip code of the location you want to map. (example:
<txp:rss_google_map address="1600 Pennsylvania Ave NW" city="Washington" state="DC" zip="20500" />
) - When the plugin is called, the address is looked up using the Yahoo! Maps geocoding service.
- If the location is found, the coordinates are added to the Google Map display using the Phoogle Maps PHP class.
Option 2
- You designate which custom fields in an article contain address data. By default, custom fields 1 – 4 are used.
- Set the address fields in a new article.
- When the plugin is called, the addresses are looked up using the Yahoo! Maps geocoding service.
- If the location is found, the coordinates are added to the Google Map display using the Phoogle Maps PHP class.
How To Use the Plugin
- Go get a Google Maps API Key. Its free, and you need a unique key for each domain you use the plugin on.
- Add the
<txp:rss_google_map_js apikey="xxx" />
tag to the<head>
section of your page. Set the apikey attribute using the key you just got. - Add the
<txp:rss_google_map />
tag to the<body>
section of your page. Set the attributes as you like per the options below. - If using option #2, write an article to the section and/or category you have specified in your rss_google_map options. (example:
<txp:rss_google_map section="locations" category="office-maps" />
) - Publish and you’re mapped!
Initially released:
27 January 2006
Posted here:
25 Aug 2006