You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Vector · Web & JSON

MapML — Map Markup Language (MapML)

HTML-like XML markup for web maps and embedded vector features, developed by the W3C Maps for HTML Community Group.

Type
Vector · Web & JSON
Extension
.mapml
Converter
Read & write
Coordinate system
Any (EPSG, ESRI, custom)
Layers
Multiple

What is a MapML file?

Map Markup Language (MapML) is a text-based markup for representing maps and map layers in a way that integrates with HTML. It is developed by the Maps for HTML Community Group at the W3C. Its specification is a community group draft rather than a formal W3C Recommendation. The goal is to let browsers and web pages display map layers declaratively, with tiles, images and vector features served as MapML documents.

A MapML document has a mapml root element with head and body sections. Vector data is encoded as map-feature elements. Each feature contains a map-geometry element with coordinates and a map-properties element holding attribute content, often as HTML. Points, lines and polygons can be mixed in one document. Coordinates refer to a declared projection, such as OSMTILE (Web Mercator), WGS84 or CBMTILE. Support in mainstream browsers currently relies on a JavaScript polyfill.

MapML files are mostly exchanged between web map developers, public-sector data publishers and GIS teams that serve layers to web pages through a custom map element. Because the format is a community group draft, behaviour can differ between tools. Check which projection the document declares, since coordinates are interpreted in that system, and expect attributes to arrive as HTML rather than plain fields.

Typical uses

  • Publishing vector layers that a web page can display without custom JavaScript code.
  • Serving features from GeoServer or GDAL/OGR to a MapML-aware viewer.
  • Embedding points, lines and polygons with HTML popups in a web map.
  • Exchanging small vector datasets as a single human-readable text file.
Files: Single XML file (.mapml); the extent and coordinate system are declared inside the document.

Sample MapML files — free download

Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.

Preview of the sample data: Saint Helena basemap st-helena-basemap.mapml

Basemap (MapML)

Multi-layer basemap of Saint Helena: island outline, land cover, waterways, 100 m contours, roads, Jamestown buildings and places. MapML document (WGS 84 / OSMTILE extent) with one layer per feature class.

  • landcover · Polygon · 190
  • places · Point · 58
  • roads · LineString · 110
  • waterways · LineString · 117
  • EPSG:4326
  • 916.5 kB
Attributes (3)
nameStringarea_km2Realosm_idString
Saint Helena122.914868269

© OpenStreetMap contributors, ODbL 1.0 · Copernicus DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA

Frequently asked questions

GeoJSON is a JSON format for geometry and simple properties, with coordinates in WGS 84. MapML is XML-like markup that declares a projection and stores feature attributes as HTML, so it is designed to be consumed directly by web pages and map viewers.

Ready to convert your data?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.