[{"data":1,"prerenderedAt":75},["ShallowReactive",2],{"blog-teaser-en":3,"blog-post-why-map0-is-not-another-geoportal-en":14,"blog-sidebar-tags-en":60,"blog-sidebar-popular-en":65},{"id":4,"slug":5,"title":6,"date":7,"headerImage":8,"__typename":13},"7e17caea-45a9-4b14-9a62-91bac8bf02fd","why-map0-is-not-another-geoportal","Why map0 is not another geoportal","2026-11-05T23:00:00Z",[9],{"url":10,"version":11,"__typename":12},"https:\u002F\u002Fcms.spatial-focus.net\u002Fapi\u002Fassets\u002Fspatialfocus\u002F8b77e020-5384-4103-9f87-ad213c6fdf84\u002F",1,"Asset","PostsFlatDataDto",{"overview":15,"post":46,"slugs":57},{"slug":5,"title":6,"subtitle":16,"opener":17,"tags":18,"date":7,"headerImage":24,"author":34,"images":45,"__typename":13},"From open data to a map on the page","Take Vienna's drinking fountains. The city publishes them as open data, including a WFS on data.wien.gv.at. A page about hot summer days could show them right next to the text, with a legend and a popup that shows the details of a fountain when someone clicks it. The data is ready and the page already exists. What is missing is a simple way to bring the two together.",[19,20,21,22,23],"Geo","map0","OGC","MapLibre","Open Data",[25],{"fileName":26,"url":10,"version":11,"metadata":27,"__typename":12},"og.jpg",{"focusX":28,"focusY":29,"pixelWidth":30,"description":31,"pixelHeight":32,"imageQuality":33},-0.6014967672688816,-0.03280557508227511,2400,"JFIF File",1260,88,[35],{"id":36,"flatData":37,"__typename":44},"247edfce-2ecf-40b8-87e1-58e549d0c243",{"name":38,"image":39,"__typename":43},"Christoph Perger",[40],{"url":41,"version":42,"__typename":12},"https:\u002F\u002Fcms.spatial-focus.net\u002Fapi\u002Fassets\u002Fspatialfocus\u002F967c15d7-bd4a-4d6e-9e34-b891dccb9906\u002F",0,"AuthorFlatDataDto","Author",null,{"slug":5,"title":6,"subtitle":16,"headerImage":47,"opener":17,"text":49,"tags":50,"date":7,"repo":51,"author":52,"images":45,"__typename":13},[48],{"fileName":26,"url":10,"version":11,"__typename":12},"The usual options all miss. Public authorities publish their geodata through spatial data infrastructures, or SDIs for short. We looked closely at two established open-source clients that many SDIs rely on. MapStore is a complete geoportal with its own Java backend and administration. It is strong at running a portal, but on someone else's page it practically ends up in an iframe. Masterportal shares our conviction that a map should be configuration, not code. Yet a portal spreads across several config files linked through a service registry, and it is set up as an application of its own rather than as a component.\n\nMapping libraries such as MapLibre GL JS or OpenLayers sit at the other end. They render beautifully, but they are toolkits for developers rather than finished map clients. Loading the services, building the layer tree, drawing the legends and formatting the popups all have to be programmed in JavaScript. Every new layer or colour change then needs a developer and a new release of the website. An editor cannot adjust the map in the CMS, and the next website starts from scratch or from a copy of the last project's code.\n\nMapStore and Masterportal do their job well, and that job is running a portal. We usually need something smaller, namely a single map inside a page that already exists.\n\nWe ran into this gap again and again in our SDI projects, and map0 is the tool we built to close it.\n\n## One script tag, one JSON file\n\nmap0 is a complete web map client packaged as a web component. Two lines put it on any page:\n\n```html\n\u003Cscript type=\"module\" src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fmap0-viewer@0.4.1\u002Fdist\u002Fmap0.js\">\u003C\u002Fscript>\n\u003Cmap0-viewer config-src=\"\u002Fmy-map.map0.json\" style=\"height:520px\">\u003C\u002Fmap0-viewer>\n```\n\nThis is the complete config for the fountain map:\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fmap0.net\u002Fschema\u002Fv1.json\",\n  \"version\": 1,\n  \"map\": { \"center\": [16.3725, 48.2083], \"zoom\": 13, \"cooperativeGestures\": true },\n  \"basemaps\": [{\n    \"id\": \"grey\", \"title\": \"basemap.at grey\", \"type\": \"raster\", \"default\": true,\n    \"url\": \"https:\u002F\u002Fmapsneu.wien.gv.at\u002Fbasemap\u002Fbmapgrau\u002Fnormal\u002Fgoogle3857\u002F{z}\u002F{y}\u002F{x}.png\",\n    \"attribution\": \"© basemap.at\"\n  }],\n  \"layers\": [{\n    \"id\": \"fountains\", \"type\": \"wfs\", \"title\": \"Drinking fountains\",\n    \"url\": \"https:\u002F\u002Fdata.wien.gv.at\u002Fdaten\u002Fgeo\", \"typeNames\": \"ogdwien:TRINKBRUNNENOGD\",\n    \"style\": { \"circle-color\": \"#0070a0\", \"circle-radius\": 5, \"circle-stroke-width\": 1.5, \"circle-stroke-color\": \"#ffffff\" },\n    \"popup\": { \"fields\": [{ \"key\": \"BASIS_TYP_TXT\", \"label\": \"Type\" }] }, \"legend\": \"auto\"\n  }]\n}\n```\n\nThe interactive map below runs on exactly this config:\n\n\u003Cmap0-viewer style=\"height:520px\">\n\u003Cscript type=\"application\u002Fjson\">\n{\n  \"$schema\": \"https:\u002F\u002Fmap0.net\u002Fschema\u002Fv1.json\",\n  \"version\": 1,\n  \"map\": { \"center\": [16.3725, 48.2083], \"zoom\": 13, \"cooperativeGestures\": true },\n  \"basemaps\": [{\n    \"id\": \"grey\", \"title\": \"basemap.at grey\", \"type\": \"raster\", \"default\": true,\n    \"url\": \"https:\u002F\u002Fmapsneu.wien.gv.at\u002Fbasemap\u002Fbmapgrau\u002Fnormal\u002Fgoogle3857\u002F{z}\u002F{y}\u002F{x}.png\",\n    \"attribution\": \"© basemap.at\"\n  }],\n  \"layers\": [{\n    \"id\": \"fountains\", \"type\": \"wfs\", \"title\": \"Drinking fountains\",\n    \"url\": \"https:\u002F\u002Fdata.wien.gv.at\u002Fdaten\u002Fgeo\", \"typeNames\": \"ogdwien:TRINKBRUNNENOGD\",\n    \"style\": { \"circle-color\": \"#0070a0\", \"circle-radius\": 5, \"circle-stroke-width\": 1.5, \"circle-stroke-color\": \"#ffffff\" },\n    \"popup\": { \"fields\": [{ \"key\": \"BASIS_TYP_TXT\", \"label\": \"Type\" }] }, \"legend\": \"auto\"\n  }]\n}\n\u003C\u002Fscript>\n\u003C\u002Fmap0-viewer>\n\nThe same document can describe everything else, from basemaps and the layer tree to legends, popups, search, measuring, print and the theme. It can sit next to the page as a file or live in a CMS field. map0 checks it against a published JSON Schema. Code editors offer autocomplete for every key, and when something is wrong, the error message names the exact key instead of leaving a blank map.\n\nmap0 builds on MapLibre GL JS and uses its vector tiles, style spec and globe view. On top of that it supports the formats an SDI publishes: WMS, WMTS, WFS and OGC API Features, as well as GeoJSON, GeoParquet and Cloud Optimized GeoTIFF. Static hosting is enough, because map0 does not need a backend of its own.\n\nOrganisations with many maps can keep their basemaps, colours and attribution in a shared base config. Each map refers to it with `extends` and only adds what is different.\n\n## Deliberately small\n\nmap0 is not a geoportal. It has no user accounts, no admin backend and no catalog server, and it does not edit features. It renders in Web Mercator and as a globe, not in national grids. These limits are intentional, because a component that does one job well can be placed on many pages without bringing a whole platform along.\n\nSmall also applies to the download. We measured how much JavaScript a browser loads to show a map, gzip-compressed, on 5 November 2026:\n\n| Client | JavaScript (gzip) | Measured on |\n|--------|-------------------|-------------|\n| map0, including MapLibre GL JS | 0.5 MB | [map0.net](https:\u002F\u002Fmap0.net) start page |\n| Masterportal 3.28, core bundle only | 1.4 MB | [Geoportal Hamburg](https:\u002F\u002Fgeoportal-hamburg.de\u002Fgeo-online\u002F) |\n| MapStore, empty map viewer | 3.6 MB | [MapStore demo](https:\u002F\u002Fmapstore.geosolutionsgroup.com\u002Fmapstore\u002F#\u002Fviewer\u002Fnew) |\n\nBoth portals offer far more functions than map0, so this is not a like-for-like comparison. It does show what a single map costs a visitor on a mobile connection. map0 also loads MapLibre and most of its own code only when the map comes into view. Until then, an embedded map adds just 34 KB to the page, so a map further down does not slow down the rest of it.\n\nThis makes map0 useful for three groups of people:\n\n* **SDI operators** who want their WMS, WFS or OGC API services to appear as usable maps, the same way across many websites.\n* **Editors** who maintain a map on a CMS page, either in the JSON or in the visual [configurator](https:\u002F\u002Fmap0.net\u002Fconfigurator\u002F), without touching code.\n* **Developers** who want an npm or CDN install, a JavaScript API and theming through CSS variables.\n\nIncreasingly, the first draft of a config comes from an AI coding assistant. Because a map is a single JSON document with a published schema, an assistant can write it, validate it and correct its own mistakes. For the services there is `map0-check`. It tells an assistant, or a person, whether a WMS or WFS will work in the browser before it ends up in a config.\n\n## Try it\n\nmap0 is open source under the MIT license. The project is still a preview, but it can already be used for real maps on real websites. The config format may still change before version 1.0, so it is best to pin the version you use. Until then, our focus is on refining the config format based on feedback from real projects.\n\n* [map0.net](https:\u002F\u002Fmap0.net) has a demo for each topic. Each one is a live map against public services, shown together with the exact config it runs on.\n* In the [playground](https:\u002F\u002Fmap0.net\u002Fplayground\u002F) you can edit a config and watch the map change as you type.\n* `npx map0-check \u003Ccapabilities URL>` checks whether a service works in map0 and explains why if it does not. It also prints a layer definition you can paste into your config.\n* The source code and the issue tracker are on [GitHub](https:\u002F\u002Fgithub.com\u002FSpatialFocus\u002Fmap0).\n\nWe would like to hear which services and pages you try it with, and especially about the ones that do not work yet.\n",[19,20,21,22,23],"https:\u002F\u002Fgithub.com\u002FSpatialFocus\u002Fmap0",[53],{"id":36,"flatData":54,"__typename":44},{"name":38,"image":55,"__typename":43},[56],{"url":41,"version":42,"__typename":12},{"en":5,"de":58,"__typename":59},"warum-map0-kein-weiteres-geoportal-ist","PostsDataSlugDto",[61,62,63,64,19,20],"C#","DDD","EF","Clean code",[66,69],{"slug":5,"title":6,"headerImage":67,"__typename":13},[68],{"url":10,"version":11,"__typename":12},{"slug":70,"title":71,"headerImage":72,"__typename":13},"radial-progress-css-animation","Radial progress with CSS",[73],{"url":74,"version":42,"__typename":12},"https:\u002F\u002Fcms.spatial-focus.net\u002Fapi\u002Fassets\u002Fspatialfocus\u002Fb7cdc0ef-364e-4444-8dd3-b85f19e87820\u002F",1795081398751]