Endpoints
Basemap
Display Mongolia with a MapLibre-compatible vector basemap, including streets and labels.
Request
/v1/basemap/style.jsonCreate a key with the basemap endpoint selected in the dashboard. The style references gateway URLs for all its tiles, sprites and fonts.
curl 'https://developers.ubhub.mn/v1/basemap/style.json' \
-H 'Authorization: Bearer YOUR_API_KEY'Styles
Two basemaps are available with the same key, scope and limits. Use Nova by adding /nova after /v1/basemap on every path.
Basemap styles
/v1/basemap/style.json/v1/basemap/nova/style.jsonIn the Flutter SDK, pick one with UbHubMapOptions(basemap: UbHubBasemap.nova).
Both styles take two options that choose what they draw on top of streets and labels: buildings=none|flat|extruded|3d and trees=none|points|3d. See 3D buildings and trees.
curl 'https://developers.ubhub.mn/v1/basemap/style.json?buildings=extruded&trees=points' \
-H 'Authorization: Bearer YOUR_API_KEY'3D buildings and trees
Buildings and trees are separate layers with their own tile sets, so an app can style them, hide them or leave them out. Without options a style has no buildings or trees; on Nova, buildings=none keeps Nova's own flat buildings.
Style options
buildings=flatfill layer, in the basemap's building colors.buildings=extrudedfill-extrusion layer, with a light in the style. Tilt the map to see them.buildings=detailedfill-extrusion to its own height (layer ubhub-buildings-parts), plus extrusions where no detailed model exists. Footprints flagged has_3d or in_scene are left to the parts. Native in every MapLibre renderer, including Android and iOS.buildings=3dmetadata.ubhub.buildings3d: the 3D Tiles tileset of the detailed meshes and their color. Footprints flagged has_3d or in_scene are left to the meshes.trees=pointscircle per tree from zoom 14, colored by kind and sized by height.trees=extrudedfill-extrusion from zoom 15. Native in every MapLibre renderer.trees=3dmetadata.ubhub.trees3d: the tree tiles, the glTF model per kind (conifer, broadleaf, shrub) and the genus-to-model table, for a 3D renderer.The added layers have stable ids, ubhub-buildings and ubhub-trees, sit above roads and below labels, and can be restyled with MapLibre's setPaintProperty or hidden with setLayoutProperty(id, "visibility", "none"). A hidden layer loads no new tiles. MapLibre draws flat, extruded, detailed, points and tree extruded on its own; the meshes and tree models of 3d need a 3D Tiles renderer such as deck.gl, which MapLibre Native on Android and iOS does not have. metadata.ubhub.buildings and metadata.ubhub.trees give the modes drawn: until a release has the parts and tree shapes, detailed and tree extruded draw extruded buildings and tree points.
The SDKs wrap all of this: the React & Next.js SDK draws all modes, including the detailed meshes, and the Flutter SDK draws every native mode, including detailed buildings and extruded trees, each with colors and on/off switches.
Resources
The style hands out URLs that carry the current release id (a date such as 2026-10-10). A release never changes, so its assets are cached for a year; a new release reaches your map through a fresh style.json. Nova keeps its unversioned /v1/basemap/nova/… paths.
Basemap resources
/v1/basemap/style.json/v1/basemap/{release}/tiles/{z}/{x}/{y}.pbf/v1/basemap/{release}/national/{z}/{x}/{y}.pbf/v1/buildings/{release}/tiles/{z}/{x}/{y}.pbf/v1/trees/{release}/tiles/{z}/{x}/{y}.pbf/v1/trees/{release}/models/{model}.glb/v1/basemap/{release}/sprites/sprite[ @2x ].json or .png/v1/basemap/{release}/fonts/{fontstack}/{range}.pbf/v1/scene/buildings/tileset.json/v1/scene/{set}/{release}/tiles/{tile}.glbAuthentication
Send Authorization: Bearer YOUR_API_KEY with every resource request. Keys and upstream URLs are rejected in query parameters. Keep your key in your backend and expose a controlled map resource adapter to your application; ensure the adapter authenticates your users and forwards only these basemap paths. Rewrite the style resource URLs to your adapter.
For React and Next.js, createUbHubHandler in the React & Next.js SDK is this adapter: it adds the key on your server, forwards only basemap paths, and rewrites the style for you.
Existing keys restricted to geocoding or routing do not gain basemap access. Create a new key that includes basemap. Revocation, expiry, billing and rate-limit checks apply to every request, including cached assets.
Limits and coverage
A map load is charged once, for its style.json: one included request. Tiles, sprites and fonts are not charged, but they have their own per-key rate limit and still need requests left on your plan. Inspect the rate-limit headers and handle 429 responses. See Pricing for what each call costs.
The configured Default_Basemap_MNG and Nova_Basemap_MNG datasets cover Mongolia and supports zoom levels 0–16. Tiles are served in the standard Web Mercator XYZ scheme. MapLibre can display higher zooms by enlarging available tiles. Tiles outside coverage and unavailable fonts return 404. Preserve the attribution provided by the style.
See Errors and Rate limits for response handling.
Website demo
The website map uses /demo/basemap/style.json and /demo/basemap/nova/style.json without a customer key. It has no request limit; upstream access stays bounded. The demo is intended for evaluation; use the authenticated service for customer integrations.