Interactive maps

Live, zoomable maps for your website and app

Pan, pinch and zoom from the whole country down to a single lane, like Google Maps, on Wayline’s own Bangladesh map: OpenStreetMap roads plus satellite-detected rural roads, about 33,000 extra village names and rural landmarks.
Loading map…
Drag to pan, scroll or pinch to zoom, right-drag to rotate. Zoom in on any town or village.

Add the map to a website

Vector tiles render sharp at every zoom level and rotate smoothly. Works with MapLibre GL JS (free, open source) and any framework: React, Vue, plain HTML.
index.html
<link href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" rel="stylesheet" />
<script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js"></script>
<div id="map" style="height: 480px"></div>
<script>
  const map = new maplibregl.Map({
    container: "map",
    style: "https://api.wayline.cloud/v1/maps/styles/wayline-light.json?key=YOUR_PUBLISHABLE_KEY",
    center: [90.3875, 23.7808], // [lng, lat]
    zoom: 12,
  });
  map.addControl(new maplibregl.NavigationControl());
  new maplibregl.Marker().setLngLat([90.376, 23.7465]).addTo(map);
</script>

Add the map to a Flutter app

Use maplibre_gl for the same vector map on Android and iOS, with your rider’s live location. For a lighter setup, flutter_map with raster tiles also works.
maplibre_gl (vector)
# pubspec.yaml
dependencies:
  maplibre_gl: ^0.22.0

// lib/map_screen.dart
import 'package:flutter/material.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

const styleUrl =
    'https://api.wayline.cloud/v1/maps/styles/wayline-light.json?key=YOUR_PUBLISHABLE_KEY';

class MapScreen extends StatelessWidget {
  const MapScreen({super.key});

  @override
  Widget build(BuildContext context) => MapLibreMap(
        styleString: styleUrl,
        initialCameraPosition:
            const CameraPosition(target: LatLng(23.7808, 90.3875), zoom: 12),
        myLocationEnabled: true,
      );
}
flutter_map (raster)
// flutter_map (raster tiles, no native code)
TileLayer(
  urlTemplate: 'https://api.wayline.cloud/v1/tiles/{z}/{x}/{y}@2x.png?key={key}',
  additionalOptions: const {'key': waylineTileKey},
  userAgentPackageName: 'com.example.app',
)

Keys, pricing and data

  • Use a publishable map key: in the dashboard, create a key with “Map tiles only”. It can load map tiles and nothing else, so it is safe inside an app or a web page. Add your websites as allowed origins.
  • One map_tile unit per tile (see pricing). The style file and fonts are free, and tiles the browser or app already cached are not requested again.
  • Native Android and iOS apps can load the same style URL with MapLibre Native. Server images for reports and emails come from the Static Maps API.
  • Map data © OpenStreetMap contributors, with villages from GeoNames and landmarks from Overture Maps. Keep the attribution visible. Details: map tiles guide.

Start building in minutes

Create an account, grab a test key and make your first request in under five minutes.