Skip to content

URL parameters

Thomas Piller edited this page Dec 15, 2022 · 29 revisions

MapX list of url parameters

  • closePanels
/**
* Close all panels at init time.
* 
* @param {Boolean|String} <closePanels> true|false.
* @example `app.mapx.org?closePanels=true`
*/
  • showProjectsListByRole
/**
* Display a modal dialog at the beginning of a session with filtered project
*
* @param {string} <showProjectsListByRole> One of ['any','member','publisher','admin']
* @example `app.mapx.org?showProjectsListByRole=member`
*/
  • showProjectsListByTitle
/**
* Display a modal dialog at the beginning of a session with filtered project
*
* @param {string} <showProjectsListByTitle> project title in english
* @example `app.mapx.org?showProjectsListByTitle=WESR*`
*/
  • project
/**
* Loads a specific project page in MapX. If not specified, MapX loads the "World" project page by default, or the last project that was visualized by the logged user.
*
* @param {string} <project> The ID of one project.
* @example `app.mapx.org?project=YYY`
*/
  • views
/**
* Filter the views in the panel according to their ID. It accepts multiple IDs. It requires the parameter "project" to be stated.
*
* @param {string} <views> The ID of a number of views, separated by a comma.
* @example `app.mapx.org?project=YYY&views=XXX`
*/
  • viewsListFilterActivated
/**
* Hide other views than those specified in `views`. Same effect as if the button "Filter Activated Views" was active.
*
* @param {boolean} <viewsListFilterActivated> 
* @example `app.mapx.org?project=YYY&views=XXX&viewsListFilterActivated=true`
*/
  • viewsListFlatMode
/**
* Display the views list outside the categories tree structure, if any. Everything will be on the base level.  
*
* @param {boolean} <viewsListFlatMode> 
* @example `app.mapx.org?project=YYY&views=XXX&viewsListFlatMode=true`
*/
  • zoomToViews
/**
* Automatically zoom on the views extent after everything is loaded
*
* @param {boolean} <zoomToViews> 
* @example `app.mapx.org?project=YYY&views=XXX&zoomToViews=true`
*/
  • lockProject
/**
* Disable the click function on the project button. The consequence is that the user can't change project from the MapX page. Requires the "project" parameter to be stated.
*
* @param {Boolean|String} <lockProject> true|false.  
* @example `app.mapx.org?lockProject=true`
*/
  • noViews
/**
* Loads a specific project in MapX with no views displayed on the views panel. This parameter stands above the filtering process operated through other parameters such as "collections", "collectionsSelectOperator", "views". Requires the "project" parameter to be stated.
* 
* @param {Boolean|String} <noViews> true|false.  
* @example `app.mapx.org?noViews=true`
*/
  • storyAutoStart
/**
* Loads a specific storymap without the usual interface and directly plays it.
* 
* @param {Boolean|String} <storyAutoStart> true|false. It must be associated to the parameter "views", which should be equal to 1 only view of story map type.  
* @example `app.mapx.org?views=XXX&storyAutoStart=true`
*/
  • lat
/**
* Defines the latitude of the centroid of the map when MapX is loaded (in EPSG:4326). It overwrites the default spatial parameters associated to a project for the specific session.
* 
* @param {numeric} <lat>  min: -90, max: 90. Spatial parameters (lat, lng, zoom) are either all required in the URL or none of them is used.
* @example `https://app.mapx.org/?lat=-9.52&lng=18.41&zoom=6`
*/
  • lng
/**
* Defines the longitude of the centroid of the map when MapX is loaded (in EPSG:4326). It overwrites the default spatial parameters associated to a project for the specific session.
* 
* @param {numeric} <lng> min: -180, max: 180.  Spatial parameters (lat, lng, zoom) are either all required in the URL or none of them is used.
* @example `https://app.mapx.org/?lat=-9.52&lng=18.41&zoom=6`
*/
  • zoom
/**
* Defines the zoom level of the map when MapX is loaded. It overwrites the default spatial parameters associated to a project for the specific session.
* 
* @param {numeric} <zoom>  min: 0, max: 22.  Spatial parameters (lat, lng, zoom) are either all required in the URL or none of them is used.
* @example `https://app.mapx.org/?lat=-9.52&lng=18.41&zoom=6`
*/
  • action
/**
* Internal method for passing encrypted actions
*
* @param {string} <action> Encrypted string
* @example `app.mapx.org?action=xxxxx`
*/
  • language
/**
* Loads the app on a specific language. Content that does not exist in the selected language will be displayed in english. If not specified, the default language "english" is used.
*
* @param {string} <language> 2 digits code among "en", "fr, "es", "de", "ru", "fa", "ps", "bn", "zh". 
* @example `app.mapx.org/?language=fr`
*/
Clone this wiki locally