BeMapAPI
BeMap 4.1.0

BeMap JS API

BeNomad's maps, routes and electric-mobility services in the browser, on MapLibre, Leaflet or OpenLayers.

One SDK · three map engines · maps, routing, geocoding & EV, by BeNomad

Release 2.0.4MapLibreLeafletOpenLayers

What's inside#

  • Maps: MapLibre GL vector tiles, Leaflet & OpenLayers raster; 3D buildings, terrain, globe projection
  • Geometry: markers (icons, labels, clustering, drag), polylines, polygons, circles, popups
  • Routing: multi-stop, alternatives, route sheets, trace-route
  • EV: smart routing, charging stations, reachable area, charging-time, vehicle catalogue
  • Geocoding: forward, reverse, address autocomplete, isochrones / reachable zones
  • BeNomad Tiles: JWT-secured PMTiles with configurable auth (cookie / header / query); 200-slice reads the browser HTTP-caches natively (Service Worker optional, only for classic 206-range); self-healing cache + timeout/retry gate; survives tileset rebuilds automatically (per-map ?v= version tokens + ETag guard, no blank maps, no cache clears)
  • One API, three engines: same Context, same calls, just change the map class
  • Credential-less production mode: the proxy option keeps your BeMap login/password on your server; the browser holds nothing to steal

Add a map

The map pages' samples, one per engine: BeNomad Tiles on MapLibre, WMS on Leaflet and OpenLayers, each run against production as published.

BeMap JS API
<!-- The BeMap JS API and the engine it drives -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BeNomadSAS/bemap-js-api@2.0.4/dist/maplibre-gl.css" integrity="sha256-qx5w1Z7EBGW65+cDDaLzzPKBM/1QLmK9WY7vut/XpzI=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BeNomadSAS/bemap-js-api@2.0.4/dist/bemap-js-api.css" integrity="sha256-6JTuf+5yR2uKDbRMVCKVkicMghqX/fopHJUUH0a9IwE=" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/gh/BeNomadSAS/bemap-js-api@2.0.4/dist/maplibre-gl.js" integrity="sha256-RamwepGJzlYFTGIKlHzPQeKR5YyV6bYVM7dAqqZe5cs=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/BeNomadSAS/bemap-js-api@2.0.4/dist/pmtiles.js" integrity="sha256-9c3A9bJWe6KCmo4QL39UNh8Ig9oxFaFuxcqQlz8sz2c=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/BeNomadSAS/bemap-js-api@2.0.4/dist/bemap-js-api.min.js" integrity="sha256-9nw1Dpfl6zDEakYlPDODJHrz9RvsqjZ+HttOFJNJMss=" crossorigin="anonymous"></script>

<div id="map" style="height: 480px"></div>
<script>
  var ctx = new bemap.Context({
    host: 'bemap.benomad.com', secure: true,
    login: 'YOUR_ACCOUNT', password: 'YOUR_API_KEY', // for evaluation: in production, use the proxy option
    tilesHost: 'mptiles-api.benomad.net'
  });
  var map = new bemap.MapLibreMap(ctx, 'map');
  map.move(2.35, 48.85, 12); // longitude, latitude, zoom
</script>

Each loads the release from https://cdn.jsdelivr.net/gh/BeNomadSAS/bemap-js-api@2.0.4/dist, pinned by this site. You can also copy the release's dist/ folder into your application.

Across the products

Examples and reference

Flutter

The same services from a Dart and Flutter application: ask your BeNomad contact.

Third-party software

The BeMap JS API 2.0.4 draws its maps with these libraries, which this site serves with it, each under its own licence: