ExpressMaps Blog

How to add a map to a website without Google

How to add a map to a website without Google
November 16th, 2026
Tom Jenks

Google Maps is the default way to put a map on a website, but it is no longer the obvious one. Since March 2025 the free allowance is 10,000 map loads a month, the embed usually has to wait behind a cookie banner in the EU and UK, and you need a Google Cloud billing account before anything shows. If all you want is a map of where you are, there are simpler options.

This guide walks through four of them, from paste-and-go to fully self-hosted, so you can pick the one that fits your site.

What you actually need from a website map

Most sites need a map that loads quickly, shows one or a few locations with a marker, looks tidy next to the rest of the page, and doesn't cost anything until the site is busy. Few need Street View, live traffic or turn-by-turn directions. If you do, Google is still the right tool. If you don't, read on.

Option 1: an OpenStreetMap embed

On openstreetmap.org, find your location, click Share, tick Include marker and copy the HTML. It is an <iframe> you can paste anywhere.

  • Good for: a personal site or a one-off page.
  • Watch out for: the map is a plain raster image in one style, you can't change its look, and OpenStreetMap's own tile servers are run by volunteers with a usage policy that rules out heavy or commercial use.

Option 2: a hosted map service (ExpressMaps)

A tile service hosts the OpenStreetMap data for you and serves it fast from a CDN. With ExpressMaps you create a free account, make an API key, and paste this where you want the map:

<link href="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.css" rel="stylesheet" />
<script src="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.js"></script>
<div id="map" style="width: 100%; height: 400px;"></div>
<script>
  var map = new maplibregl.Map({
    container: 'map',
    style: 'https://tiles.expressmaps.com/styles/standard.json?key=YOUR_API_KEY',
    center: [-0.1276, 51.5072],   // longitude, latitude
    zoom: 13
  });
  map.addControl(new maplibregl.NavigationControl());
  new maplibregl.Marker().setLngLat([-0.1276, 51.5072]).addTo(map);
</script>

The embed generator writes this for you if you'd rather not touch the coordinates by hand.

  • Good for: business sites that want a sharp, branded-looking map without a bill. The free plan is 100,000 map loads a month with commercial use allowed, and panning and zooming don't count.
  • Also: ten styles including dark ones, and the map sets no cookies, so it doesn't need to sit behind a consent banner.
  • Watch out for: it's a map, not a full location platform. There's no Street View, routing or business search.

Option 3: a WordPress plugin

On WordPress you can skip the code. Install the ExpressMaps plugin from Plugins → Add New, paste your API key in its settings, and add the ExpressMaps Map block to any page, or use the [expressmaps] shortcode in the classic editor and page builders.

For Webflow, Squarespace, Wix and Shopify, paste the snippet from option 2 into the builder's custom code or embed element.

Option 4: host the map yourself

If you'd rather depend on nobody, you can download OpenStreetMap data as a single file (for example a Protomaps PMTiles extract), put it on your own storage, and draw it with the same open-source MapLibre library.

  • Good for: developers who want full control and are happy to maintain it.
  • Watch out for: you'll be responsible for refreshing the data, styling the map, the fonts and icons, and the bandwidth. A world map is well over 100 GB.

Which should you choose?

  • Personal page, low traffic: the OpenStreetMap embed.
  • Business site, any builder: a hosted service like ExpressMaps.
  • WordPress: the plugin.
  • A developer who wants to own everything: self-hosting.
  • Need Street View or directions: stay with Google, and budget for it.

Moving an existing Google Maps embed

Find the Google <iframe> in your page, delete it, and paste the snippet from option 2 in the same place with your own coordinates. Note that MapLibre wants longitude first, then latitude, the opposite of Google. That's the only change most sites need. If you use the Google Maps JavaScript API instead of the embed, our Google Maps alternative page covers the switch and what it costs.

Start free with 100,000 map loads a month, or see the live demo first.

Back to List