EzBizNiz.Com

Your Guide To Online Business

Google Maps Plugin For WordPress

WP Google Maps - Latest Version Downloads: 4466 times
WP Google Maps - 2.0b2 Downloads: 839 times

With the Google Maps Plugin for WordPress you can easily add Google Maps to your WordPress blog.

To add Google Maps to a post or page you just have to enter [wp-google-maps (map-settings)], where (map-settings) is replaced with your map settings.

See more information below about all the available Google Maps settings you can use to control the look and feel of your maps.

For example, if you want to display the map of France, you just have to enter [wp-google-maps lat=”46.73986059969267″ lon=”3.603515625″ zoom=”5″ hidecontrols=”false”] and you will get:

You can also override other default map settings like this:

[wp-google-maps lat=”40.73503113801819″ lon=”-73.98794174194336″ zoom=”12″ width=”250″ height=”250″ zoomcontrol=”small” map=”true” sat=”false” hyb=”true” ter=”false” searchbox=”false” hidecontrols=”false”]

If you want to add Google Maps inside your template code, there is a function called wp_google_maps() available that you can use.

The map parameters are written like this: wp_google_maps(“lat=40.73503113801819&lon=-73.98794174194336&zoom=12″);

Google Maps Options

The map options you can set are the following:

  • lat – Latitude
  • lon – Longitude
  • zoom – Zoom level [0-19]
  • zoomcontrol – Display zoom control [none, small or large]
  • scale – Display map scale [true or false]
  • scaleposition – Position of the map scale [G_ANCHOR_TOP_RIGHT, G_ANCHOR_TOP_LEFT, G_ANCHOR_BOTTOM_RIGHT or G_ANCHOR_BOTTOM_LEFT]
  • overviewmap – Display overview map [true or false]
  • overviewmap_width – Overview map width in pixels
  • overviewmap_height – Overview map height in pixels
  • width – Map width in pixels
  • height – Map height in pixels
  • map – Normal map [true or false]
  • sat – Satellite map [true or false]
  • hyb – Hybrid map [true or false]
  • ter – Terrain map [true or false]
  • defaulttype – Default map type [G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP or G_PHYSICAL_MAP]
  • searchbox – Search box [true or false]
  • searchboxposition – Search box position [G_ANCHOR_TOP_RIGHT, G_ANCHOR_TOP_LEFT, G_ANCHOR_BOTTOM_RIGH or G_ANCHOR_BOTTOM_LEFT]
  • hidecontrols – Hide controls when mouse not over map [true or false]
  • markers – Define markers and marker data to be displayed on the map [field1||field2||field3::field1data1||field2data1||field3data1::field1data2||field2data2||field3data2::<a href=’||field1||’>||field2||</a><br />||field3||]
  • markerxmlfeed – URL to an XML feed that contains marker positions and other data
  • markerxmlfeedfields – Define the XML feed fields to use in the markerxmlfeedhtmlpattern below
  • markerxmlfeedhtmlpattern – The XML feed HTML pattern that defines how the data is displayed when clicking on a marker

Adding Markers – Manual & Using a Marker XML Feed

Since version 2 of the plugin you can insert markers into your map in two ways:

See here how you can add Google Maps markers to your map…

Requirements

For WP Google Maps to work, you need a Google Maps API Key, which you can get from Google at http://code.google.com/apis/maps/.

Download Latest Version Of The Google Maps Plugin For WordPress

Just click on the link below to download the latest version of the Google Maps Plugin for WordPress and start publishing Google Maps on your WordPress blog today.

WP Google Maps - Latest Version Downloads: 4466 times
WP Google Maps - 2.0b2 Downloads: 839 times

Installation

To install the Google Maps Plugin for WordPress, you just have to unzip the zip-file and copy the folder wp-google-maps to your plugin directory (/wp-content/plugins/) and then go to your WordPress administration console to activate the plugin through “Plugins”.

You can then manage Google Maps Plugin for WordPress using Options->WP Google Maps in your administration menu.

The first thing you need to do is to enter the Google Maps API Key.

Compatibility

The Google Maps Plugin for WordPress has only been tested on WordPress 2.2 and we cannot guarantee that it will work with earlier versions, but you can try it at your own risk.