MapSnippets logo MapSnippets logo

MapTiler SDK Examples

29

An all-in-one SDK with built-in geocoding, terrain, and cloud tiles. All examples use MapTiler Cloud tiles.

Map display & interaction

3D extruded buildings around Notre-Dame in Paris rendered with MapTiler SDK.
3D Building Extrusions with MapTiler SDK Extrude 3D buildings on a MapTiler SDK map with a fill-extrusion layer that reads render_height from the building source layer of the vector tiles.
3D terrain of the Mont Blanc massif near Chamonix rendered with MapTiler SDK.
3D Terrain with MapTiler SDK Turn on 3D terrain in MapTiler SDK with the terrain and terrainExaggeration options of maptilersdk.Map, then tilt the camera with pitch to see the relief.
Satellite aerial view of Rome, Italy shown as a MapTiler SDK basemap style.
Satellite Basemap with MapTiler SDK Show satellite imagery as the basemap of a MapTiler SDK map by setting style to maptilersdk.MapStyle.SATELLITE in the maptilersdk.Map constructor.
South Asia map with Default, India, China, and Pakistan buttons for viewing disputed border claims in MapTiler SDK.
Disputed Borders View with MapTiler SDK Filter disputed boundary lines in MapTiler SDK by calling map.setFilter() on boundary layers with the claimed_by property for a chosen country's view.
Paris map configured with cooperative gesture handling, requiring Ctrl+scroll to zoom, in MapTiler SDK.
Configure Map Gestures with MapTiler SDK Require Ctrl+scroll to zoom an embedded MapTiler SDK map by setting cooperativeGestures to true in the maptilersdk.Map constructor.
3D globe view of Earth centered on Europe and Africa against a starfield, rendered with MapTiler SDK.
Globe Projection with MapTiler SDK Render the Earth as a 3D globe in MapTiler SDK by setting projection to 'globe' in the maptilersdk.Map options, here over satellite imagery.
MapTiler SDK map centered on Paris with a marker, using built-in MapTiler cloud tiles.
Initialize a Map with MapTiler SDK Initialize a MapTiler SDK map with maptilersdk.config.apiKey and new maptilersdk.Map, then pin a maptilersdk.Marker with a Popup on Paris.
Central Europe map with EN, DE, FR, CS, and JA buttons for switching label language via setLanguage().
Set Map Language with MapTiler SDK Localize map labels at runtime in MapTiler SDK by calling map.setLanguage() with a language code such as 'en', 'de', or 'local' to swap the label text.
Paris map with Streets, Satellite, Outdoor, and Topo buttons for switching MapStyle in MapTiler SDK.
Switch MapStyle with MapTiler SDK Switch between MapTiler styles at runtime by passing maptilersdk.MapStyle constants such as STREETS, SATELLITE, or TOPO to map.setStyle() in MapTiler SDK.
Non-interactive static map image of Rome generated with the MapTiler Static Maps API.
Static Map Image with MapTiler SDK Embed a static map image from the MapTiler Static Maps API through an img src URL and place it above an interactive MapTiler SDK map.

Markers, annotations & overlays

Geocoding & search

Location & real-time

Analytics & advanced

Build maps using MapTiler SDK with AI

Install the MapTiler SDK skill in your IDE and let AI write the code for you.

All examples use MapTiler maps and require a free API key.