MapVina

Building 3D Urban Maps and Dual-Boundary Search for Smart City & Infrastructure Systems with MapVina

24/11/2026 Application
image
24/11/2026

Building 3D Urban Maps and Dual-Boundary Search for Smart City & Infrastructure Systems with MapVina

When engineering urban operations dashboards, utility infrastructure portals, or real-estate analytics in Vietnam, product teams run into two bottlenecks at once: flat 2D raster maps fail to convey building density and elevation context, and address search breaks whenever legacy administrative unit names collide with post-merger boundaries.

Solution Overview

This guide pairs MapVina Vector Tiles v2 (WebGL fill-extrusion 3D buildings driven by render_height) with MapVina Dual-Boundary Search API v2 (new_admin=true&include_old_admin=true) in a single zero-build HTML file.

Why flat 2D maps fall short for Smart City and infrastructure workloads

Enterprise GIS and municipal operations platforms require more than static pins on a flat canvas. Two capabilities determine whether a map interface holds up in production:

Real-time 3D spatial context

Instead of downloading heavy static PNG tiles on every pan and zoom, Vector Tiles stream compact geometry to the browser GPU. Using the render_height attribute in the "building" layer lets you color-code and extrude structures for urban planning, telecom line-of-sight, or emergency response [2].

Parallel legacy & post-merger boundaries

Following Vietnam's July 1, 2025 administrative reform, legacy CRM/ERP records and end-users still query former district and ward names, while updated systems store post-merger units [1]. Returning both formats together prevents broken lookups and manual reconciliation.

Technical Architecture: 3D Building Extrusion on MapVina Vector Tiles v2

Using MapLibre GL JS, you can attach a fill-extrusion layer directly to the "base" source and "building" source-layer included in MapVina's streets.json style [2]:

Engineering Note: Passing labelLayerId inserts 3d-buildings immediately before the first text symbol layer so street names and POI labels remain legible above tall towers.

Integration Reference: Endpoints & Parameters

ComponentEndpoint / LayerKey ParametersRole in Architecture
Vector Base Style v2/styles/v2/streets.jsonkey=YOUR_API_KEYProvides the "base" vector source and street label hierarchy [2].
3D Building Extrusionsource: "base", source-layer: "building"render_height, render_min_heightExtrudes and color-ramps 3D buildings from zoom 14+.
Dual-Boundary Autocomplete/api/v2/place/autocomplete/jsonnew_admin=true&include_old_admin=trueReturns both description (new) and old_description (legacy) [3].
Dual-Boundary Place Details/api/v2/place/details/jsonplace_id, new_admin=true&include_old_admin=trueReturns rooftop coordinates plus formatted_address and old_formatted_address.

3-Step Implementation Workflow

1. Initialize the 3D camera perspective

Configure MapLibre GL JS with pitch: 58, bearing: -25, and antialias: true. If your codebase references window.mapvinagl, alias window.mapvinagl = window.mapvinagl || window.maplibregl; to keep your initialization portable.

2. Query dual-boundary suggestions on user input

Debounce user keystrokes (250–350ms) and call Autocomplete API v2 with new_admin=true&include_old_admin=true [3]. Render item.description as the primary label and item.old_description underneath so operators can verify both new and legacy ward/district names before selecting.

3. Handle two-tier urban structures cleanly

When parsing address_components from Place Details, fall back gracefully for two-tier urban municipalities (where an intermediate district level is absent) by prioritizing administrative_area_level_3 || administrative_area_level_2 before flying the camera with map.flyTo({ center: [lng, lat], zoom: 16.5 }).

Instant Browser Demo (Single HTML File)

You can test the full 3D urban view and dual-boundary search immediately in Chrome, Edge, or Safari without setting up Node.js or a backend server. The standalone demo-en.html uses public_key for evaluation [1]; for production traffic, generate a dedicated key at account.mapvina.com and lock it with Domain Whitelisting.

Cost Predictability at Scale

According to published pricing on mapvina.com [1], MapVina provides transparent tiers for prototyping and production workloads:

  • Free Tier (0 VND/month): Includes 10,000 Map Tiles/day, 200 Search/Geocoding requests/day, and 200 Routing/Distance requests/day — enough to build and validate a complete 3D prototype.
  • Pay-As-You-Go: Under 200,000 LoadTiles / MapView requests are 0 VND; above 200,000, pricing is 1,000 VND per 1,000 requests. Search / Autocomplete / Geocoding is 12,000 VND per 1,000 requests (under 200,000) and 11,000 VND per 1,000 requests beyond 200,000 [1], backed by domestic Vietnam servers and direct engineering support via [email protected].

Build 3D Urban Maps for Your Vietnam Platform

Register a free account to get your API key and test MapVina Vector Tiles v2 and Dual-Boundary Search directly.

References

  1. MapVina — Domestic Maps API Platform & Service Pricing
  2. MapVina Docs — Maps API Integration Guide
  3. MapVina Docs — Autocomplete API v2 & Administrative Boundary Parameters

Innovative Ideas
Make an Impact

Moving this industry forward requires not only skill, talent and expertise, but also imagination. All are welcome.

MapVina

Ask Track AI...

MapVina

Track AI

With MapVina

Chat with us on Messenger Chat Zalo Chat WhatsApp