Difference between revisions of "GeoMashup Google Maps plugin"

From Help Wiki
m
 
(5 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
[http://code.google.com/p/wordpress-geo-mashup/wiki/Documentation WordPress Geo Mashup]
 
[http://code.google.com/p/wordpress-geo-mashup/wiki/Documentation WordPress Geo Mashup]
 
===Working examples of plugin===
 
===Working examples of plugin===
*[http://www.listentoafrica.com/map/ Listen to Africa]
+
*[https://sites.evergreen.edu/musicalcities/musical-cities-map/ Musical Cities - Spring 2015 Evergreen Program]
*[http://shark.therowes.net/ the Global Shark Attack Map]
+
*[http://blogs.evergreen.edu/dryfalls/global-map/ Landscapes of Change - Fall 2012 Evergreen Program]
*[http://www.picsof.asia/ Travelblog Pics of Asia]  
+
 
   
 
   
 
===Getting Started===
 
===Getting Started===
 
#From your blog's dashboard activate the GeoMashup plugin. Go '''Plugins''' and click '''Activate''' next to the GeoMashup plugin
 
#From your blog's dashboard activate the GeoMashup plugin. Go '''Plugins''' and click '''Activate''' next to the GeoMashup plugin
#Go to '''Settings > GeoMashup''' and click the '''"Update Options"''' button on the Overall tab to accept the pre-filled Google Maps API key
+
#Go to '''Settings > GeoMashup''' to review the various options available to you in these settings. These settings are explained in detail at the [https://wordpress.org/plugins/geo-mashup/ plugin's documentation]
#Review the various options available to you in these settings. These settings are explained in detail at the [http://code.google.com/p/wordpress-geo-mashup/wiki/Documentation plugin's documentation]
+
  
 
===Adding geographical data to your Wordpress posts===
 
===Adding geographical data to your Wordpress posts===
Line 26: Line 24:
 
#Create a post
 
#Create a post
 
#Add geolocation data at the bottom
 
#Add geolocation data at the bottom
#In the body of the post include the GeoMashup shortcode '''<nowiki>[geo_mashup_map]</nowiki>'''
+
#Optional: In the body of the post you can include the GeoMashup shortcode '''<nowiki>[geo_mashup_map]</nowiki>''' if you want to display a map just for that post's location.
  
 
For more info on available GeoMashup shortcode tags see http://code.google.com/p/wordpress-geo-mashup/wiki/TagReference
 
For more info on available GeoMashup shortcode tags see http://code.google.com/p/wordpress-geo-mashup/wiki/TagReference
Line 44: Line 42:
  
 
===Know Issues and Work Arounds===
 
===Know Issues and Work Arounds===
====Global Map not displaying at correct height====
+
====Map not displaying at correct height====
 
Some themes (Hemingway, Baskerville ...) appear to interfere with defining the height of the Map. To fix this:
 
Some themes (Hemingway, Baskerville ...) appear to interfere with defining the height of the Map. To fix this:
 
# Activate the '''Simple Custom CSS plugin'''
 
# Activate the '''Simple Custom CSS plugin'''
 
# Under '''Appearance > Custom CSS''' add the following (replace the height value with your desired height):
 
# Under '''Appearance > Custom CSS''' add the following (replace the height value with your desired height):
 
  <pre>.gm-map iframe {
 
  <pre>.gm-map iframe {
height: 600px;
+
height: 600px;
}</pre>
+
  }</pre>
  
* Note: this will affects the iframe window size of all maps on your site so make sure that global and Single map width and heights are set to be the same in your GeoMashup Settings
+
* Note: this will affects the iframe window size of all maps on your site so make sure that Global and Single map width and heights are set to be the same in your GeoMashup Settings
  
 
  [[category:Wordpress Plugins]]
 
  [[category:Wordpress Plugins]]

Latest revision as of 14:07, 31 January 2020

Blue-l.png
The GeoMashup plugin lets you save location information with posts, pages, and other WordPress objects. These objects can then be presented on interactive Google maps in many ways.

Plugin's home page

WordPress Geo Mashup

Working examples of plugin

Getting Started

  1. From your blog's dashboard activate the GeoMashup plugin. Go Plugins and click Activate next to the GeoMashup plugin
  2. Go to Settings > GeoMashup to review the various options available to you in these settings. These settings are explained in detail at the plugin's documentation

Adding geographical data to your Wordpress posts

Geomashup1.png

Once the plugin has been activated you will have the ability to create placemarks or locations on a Google map when you are writing a new post (scroll to the bottom to see the Google Map).

  • Find a location by entering a street address
  • Add a location by clicking on the map (you can move your location later if you need to)
  • Name your location
  • Save your location if you think you may use it more than once, it will then be available from the "Saved Locations" dropdown menu when you create new posts

Add maps to your wordpress posts

Using the GeoMashup shortcode you can embed Google maps to any geolocated post.

  1. Create a post
  2. Add geolocation data at the bottom
  3. Optional: In the body of the post you can include the GeoMashup shortcode [geo_mashup_map] if you want to display a map just for that post's location.

For more info on available GeoMashup shortcode tags see http://code.google.com/p/wordpress-geo-mashup/wiki/TagReference

Create a Global Map page

You can also create a master map that will display all of your site's placemarks. By clicking on a placemark you'll be able to read the contents of the post associated with that location.

  1. Create a static page in your site - give it a name like All Locations or The Big Map
  2. Add the GeoMashup short code [geo_mashup_map]
  3. In Settings > GeoMashup specifiy this newly created page as your Global Mashup page from the dropdown list and save your changes

Display images in your placemarks

If you'd like an image to appear in the placemark pop-up on your map, set a featured image for the post.

  1. Edit your post
  2. Click "Set Featured Image" (usually in lower right)
  3. Click "Select Files" to upload an image from your computer
  4. In the image properties click "Set as featured image"

Note: you may need to re-size this image outside of WordPress to get it to be sized properly in your map.

Know Issues and Work Arounds

Map not displaying at correct height

Some themes (Hemingway, Baskerville ...) appear to interfere with defining the height of the Map. To fix this:

  1. Activate the Simple Custom CSS plugin
  2. Under Appearance > Custom CSS add the following (replace the height value with your desired height):
.gm-map iframe {
 	height: 600px;
  }
  • Note: this will affects the iframe window size of all maps on your site so make sure that Global and Single map width and heights are set to be the same in your GeoMashup Settings