I love the maps that Karl at Great Circle Mapper makes available. Now I’ve made it easier to embed them in a blog post on WordPress. Added bonus: It automatically includes the links back to Karl’s site per the notes in the FAQ page. Simply install the (very lightweight) plugin and you get a new shortcode to use on your site: [gcmap].
The following parameters are available in the Great Circle Mapper plugin:
(Required) This is the route you want mapped. It is required. If it is not specified then a small error message will display rather than the map. Use the typical gcmap.com formatting (e.g. “EWR-LAX” or “las-den-nrt” or “lax-cdg;lhr-sfo”).
(optional) Determines the width of the image displayed. Default is 600 pixels which should work well in most themes.
(optional) Determines the height of the image displayed. Default is 300 pixels which should work well in most themes.
(optional) Determines the width of the line used in drawing the maps. Default is two pixels.
(optional) Determines the color of the path drawn. Default is blue. Available options are:
(optional) Determines which background is used for the map. Default is bluemarble. Available options are:
- bluemarble – NASA Blue Marble maps
- light – Light background line map
- plain – default GCmap.com line map
- facebook – Facebok heatmap
- night – Nighttime light pollution map
(optional) Determines what “tag” is placed at the dot where each airport is. Default is iatacity. Available options are:
- none – no tag
- iata – IATA code
- city – City Name
- airport – Airport Name
- iatacity – City Name + IATA code
(optional) Want to see ETOPS “no-go” zones on the map? This is the parameter to set. Default is 0. Available options are:
In between the [gcmap] and [/gcmap] tags you can enter a caption. This is optional and will be inserted using the WordPress tags. The proper attribution for the maps will be included on a separate line after the caption. Note that if you do NOT include a caption and [/gcmap] tag then you must “close” the tag with a “/” inside the main [ggcmap] entry so that it renders properly.
Here are a number of usage examples showing off the various different parameters
Specify just a path: [gcmap path=’ewr-lax’ /]
Change the color and size of the path: [gcmap path=’ewr-lax’ pathcolor=red pathwidth=”4″][/gcmap] (Note that the parameters can have no quotes, single quotes or double quotes)
Change the background to the “normal” line map: [gcmap path=’ewr-lhr’ bgcolor=’plain’][/gcmap]
Airport names & Caption
Show the airport name rather than the city name: [gcmap path=’ewr-lhr’ dottag=airport]What is that airport called??[/gcmap]
ETOPS & Caption
Let’s put an ETOPS 138 overlay on the map and a caption, too: [gcmap path=’gru-fra’ etops=138]Can we make it all the way there??[/gcmap]
Lots of flights coming up: [gcmap path=’bcn-mad-bkk;hkg-syd;syd-dfw-jfk’ dottag=iata]Round and round we go![/gcmap]
Want to see something else?? Leave a note below and I’ll try to come up with an answer.
Found a bug? Report it below or in the wordpress.org plugin homepage.