Skip to content

Import Files


In MapStore it is possible to add map context files or vector files to a map. This operation can be performed by clicking from the Side Toolbar. Following these steps the import screen appears:

Here the user, in order to import a file, can drag and drop it inside the import screen or select it from the folders of the local machine through the button. Actually there's the possibility to import two different types of files:

  • Map context files (supported formats: MapStore legacy format, WMC)

  • Vector layer files (supported formats: shapefiles, KML/KMZ, GeoJSON and GPX)

Warning

Shapefiles must be contained in .zip archives.

Export and Import map context files

A map context is, for example, the file that an user download selecting the button from the Side Toolbar. Map contexts can be exported in two different format:

  • The file, is an export in json format of the current map context state: current projections, coordinates, zoom, extent, layers present in the map, widgets and more (additional information can be found in the Maps Configuration section of the Developer Guide).

Adding a MapStore configuration file the behavior is similar to the following:

  • The (Web Map Context) file, is a xml format where only WMS layers present in the map are exported including their settings related to projections, coordinates, zoom and extension (additional information can be found in the Maps Configuration section of the Developer Guide).

Adding a WMC configuration file the behavior is similar to the following:

Warning

Adding a map context file the current map context will be overridden.

Import vector files

Importing vector files, the Add Local Vector Files window opens:

In particular, from this window, it is possible to:

  • Choose the layer (when more than one layer is import at the same time)

  • Set the layer style or keep the default one

  • Toggle the Zoom on the vector files

Once the settings are done, the files can be added with the button and they will be immediately available in the TOC nested inside the Imported layers group. For example:

Warning

Currently is not possible to read the Attribute Table of the imported vector files and for this reason also the Layer Filter and the creation of Widgets are not allowed for those layers.