This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Geoportail Shortcode


Une documentation en français est disponible à l’adresse suivante :

This plugin allows you to add a Geoportail map into your post/page using shortcode.
To use it, you need a free key from :
Altitude and speed graph of gpx file is available since v2.0.

Any question, idea or comment ? Please contact me at : geoportailWP(at)gmail(dot)com


  • default french map
  • set map size
  • set zoom level
  • set location by latitude/longitude
  • add KML or GPX file via URL link
  • change type : normal / mini
  • change territory : France, Guadeloupe, Guyane, … (cf
  • choose Layers : map, ortho (and all other layers available in the geoportail )
  • change Layers settings : visibility / opacity
  • use geolocalisation : show where I’m !
  • use geotagging : show where the post have been written.
    this functionnality need the geolocation plugin :
  • easy create your own shortcode using Shortcode Builder
  • display altitude graph of gpx files


  • The map in an article
  • Settings Screen


This section describes how to install the plugin and get it working.


  1. Upload geoportail-shortcode directory to the /wp-content/plugins/ directory
  2. Go to to have your free api key.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Set your api key in the ‘WP Geoportail Shortcode’ menu, through ‘Settings’ menu.
  5. Add shortcode in your posts (ex: [geoportail w=”400″ h=”300″/])


How can use the geolocalisation function?

Using the geolocate parameter :

Ex: [geoportail geolocate=”true” /]

How can use the geotagging function?

Using the geotag parameter :

Ex: [geoportail geotag=”true” /]

How can i set my API key?

Using the ‘WP Geoportail Shortcode’ menu, through ‘Settings’ menu.

How do I add a map to my post?

Using shortcode in the edit box for your post.

Ex: [geoportail /]

Can I add multiple maps to the same post?

Yes, you can do it using different “id” for each map.

[geoportail id=”1″ /]
[geoportail id=”2″ /]

Can I change the size of the map?

Yes, you can do it using your own width and height parameters.

[geoportail w=”400″ h=”300″]

Can you add multiple KML files?

Yes, you can do it using the “kmlArray” parameter.

[geoportail kml_array=”url1,title1;url2,title2;…”]

Can you add multiple GPX files?

Yes, you can do it using the “gpxArray” parameter.

[geoportail gpx_array=”url1,title1;url2,title2;…”]

Can you change the map viewer type?

Yes, you can do it using the “type” parameter. It can be “mini” for a mini viewer without tools panel or “normal”.

[geoportail type=”mini” /]

Can you choose your Layers?

Yes, you can do it using the “layers” parameter. It can be “ortho” if you want only the ortho-image (aerial image) layer, “map” if you want only the map layer or “ortho, map” if you want both of them.

[geoportail layers_array=”ortho, map” /]

Can you change the territory ?

Yes, you can do it using the “territory” parameter. Default parameter is “FXX” : France.
It can be one of :

FXX France métropolitaine
GLP Guadeloupe
GUF Guyane
MTQ Martinique
MYT Mayotte
NCL Nouvelle Calédonie
PYF Polynésie Française
REU Réunion
SPM Saint Pierre et Miquelon
WLF Wallis et Futuna
ANF Antilles Française (GLP, MTQ, SMA, SBA)
CRZ Crozet
EUE Union Européenne
KER Kerguelen
SBA Saint-Barthélémy
SMA Saint-Martin
WLD La Terre

[geoportail territory=”GLP” /]


March 21, 2017
This plugin is giving access to the best maps (IGN – national institute of geography) we could have in France but unfortunately, it is not supported anymore. I’ve been unable to run it properly today. It’s a pitty because I don’t see any plugin able to use the IGN maps.
Read all 2 reviews

Contributors & Developers

“Geoportail Shortcode” is open source software. The following people have contributed to this plugin.


Translate “Geoportail Shortcode” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Fix incompatibility with wp-gpx-map


  • Form-Builder is now working.
    Please remove your old maps in the shortcode option menu.


  • Fix api loading issu
  • Include geoportail css
  • Known issues : Form-Builder : works randomly, please don’t use it for now.


  • Try to fix apiVersion bug


  • No more compatible with api version < v2.0beta, (please ask a new api key at
  • Shorcode builder improvement:
    • maps parameter are now save in a database,
    • allows preview of gpx file.
  • Speed Graph of gpx file is now available.


  • Compatibility with new version of geoportal api (v2.0beta)
  • and still compatible with older version


  • add map preview in shortcode builder
  • few improvement in interaction between altitude chart and map


  • add interaction between altitude chart and map
  • few code improvement


  • fix centering map issue
  • add marker for gpx waypoints


  • fix zoom issue


  • fix multiple maps on the same page
  • fix problem with upload file


  • fix some bug


  • Introduce altitude graph


  • fix some bug


  • Change gpx color display to increase visibility
  • Allow to display/hide shortcode builder


  • Introduce Shortcode Builder
    It allow you to easy create shortcode.


  • Fix zoom bug !


  • Many changes in the menu page
  • Allows configuration of all layers of the geoportail (using layers_array)
  • be careful some balise change (cf Upgrade notice)


  • Geotaging : use geotag=”true”
  • Geolocalisation : use geolocate=”true”
  • Multi KML/GPX file : use kml_array/gpx_array
  • be careful some balise change (cf Upgrade notice)


  • few improvements in Settings Screen
  • ready to support the new geoportal api v1.3 (cf )


  • few improvements


  • choose Layers : map, ortho
  • change Layers settings : visibility / opacity for map & ortho


  • Add option menu


  • Add change territory support
  • Add change viewer type support


  • Add GPX support


  • First release