Skip to content

Tilemap

tilemap


AI Agent Integration ✨ NEW

Download the optimized doc for AI agent integration (SDK + Tilemap): Map Display Agent Doc · Machine-readable schema: OpenAPI 3.1

VIETMAP provides vector styles (style.json) for GL-based SDKs and a raster satellite tile layer for XYZ clients such as Leaflet, OpenLayers, or devices without WebGL. Choose a style from the tables below and pass its URL to the SDK.

VIETMAP serves two tile formats:

  • Vector — a style.json file for VIETMAP SDKs or any GL-based library (see Vector styles below).
  • Raster — PNG tiles at {z}/{x}/{y} for Leaflet or OpenLayers (see Raster tiles below).

Try on Vietmap Live Map: https://tools.vietmap.vn/live

Vector

Vector styles are rendered client-side, allowing colors, labels, icons, and layer order to be customized by editing layers in style.json or calling the SDK's runtime styling API (setPaintProperty, setLayoutProperty) without server-side re-rendering.

To render a vector style, use the Web SDK, Flutter SDK, React Native SDK, Android SDK, or iOS SDK. Other GL-based libraries (MapLibre, Mapbox GL) also accept the style.json URLs below. For an existing Leaflet project, see Leaflet Integration. VIETMAP vector street map

Street map

VietMap Maps SDK Integration

Version requirement: Web SDK v6.0.0 or later. Mobile SDKs (Flutter, React Native, Android, iOS) accept these styles on every version.

Vector styles — pass the style.json URL directly to the style parameter of any VIETMAP SDK:

Style Description URL Playground
Vector Default (Street) Standard street map. https://maps.vietmap.vn/maps/styles/tm/style.json?apikey={your-apikey} Try
Vector Light Light, low-contrast variant of Street. https://maps.vietmap.vn/maps/styles/lm/style.json?apikey={your-apikey} Try
Vector Dark Dark variant of Street. https://maps.vietmap.vn/maps/styles/dm/style.json?apikey={your-apikey} Try
Vector Hybrid Satellite imagery with road and POI labels. https://maps.vietmap.vn/maps/styles/hm/style.json?apikey={your-apikey} Try
Custom style Custom colors, icons, and labels created in Map Editor (guide). Copy the style link from Share & embed in Map Editor Open …/playground/tilemap?custom= + the style ID (the part between /styles/ and /style.json in the style link)

Traffic overlay — a vector style that colors real-time congestion, merged on top of the active base style. See Traffic layer for how to merge it, what the style contains, and its zoom range.

Raster tiles — use as an XYZ tile source in Leaflet, OpenLayers, or a VietMap GL JS raster source:

Style Description URL
Satellite Raw satellite imagery, no road labels. https://maps.vietmap.vn/maps/tiles/st/{z}/{x}/{y}.png?apikey={your-apikey}

Hybrid vs Satellite

Satellite (st) is raw raster imagery without labels for use as an XYZ raster source. Hybrid (hm) is a full vector style combining satellite imagery with road and POI labels; pass its style.json URL to any GL-based SDK.

Using Leaflet

For an existing Leaflet project, the @vietmap/vietmap-gl-leaflet package wraps the VIETMAP vector base map as a Leaflet layer while preserving the Leaflet API and existing plugins. See Leaflet Integration.

Restrict your API key

Tile and style URLs expose the API key in the browser. Configure an HTTP referer allowlist and a per-IP rate limit in Manage API Key.