MapSnippets logo MapSnippets logo

Satellite Basemap with MapTiler SDK

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.

progress_activity Loading map...
maptilersdk.config.apiKey = 'YOUR_MAPTILER_KEY';
const map = new maptilersdk.Map({
  container: 'map',
  style: maptilersdk.MapStyle.SATELLITE,
  center: [12.4964, 41.9028],
  zoom: 15
});
new maptilersdk.Marker({ color: '#9C27B0' })
  .setLngLat([12.4922, 41.8902])
  .setPopup(new maptilersdk.Popup().setHTML('<b>Colosseum</b>'))
  .addTo(map);

How to use a satellite basemap with MapTiler SDK

Set style: maptilersdk.MapStyle.SATELLITE to use satellite imagery as the basemap. MapTiler SDK resolves this to the latest MapTiler satellite style automatically.

Satellite imagery is raster-based and shows real-world aerial photography. Markers, layers, and controls work identically to vector styles.

For satellite with road labels overlaid, use MapStyle.HYBRID instead.

Key APIs

API Description Docs
MapStyle.SATELLITE Satellite imagery style docs.maptiler.com/sdk-js/api/
MapStyle.HYBRID Satellite with labels docs.maptiler.com/sdk-js/api/

FAQ

Is satellite imagery available globally?

Yes. MapTiler provides global satellite coverage. Resolution varies by region, and urban areas typically have higher resolution than remote areas.

Can I add custom layers on top of satellite?

Yes. All layer types (fill, line, circle, symbol) render on top of the satellite basemap.

Common mistakes

  • Using MapStyle.SATELLITE when you need labels, where MapStyle.HYBRID is the right choice
  • Expecting vector tile features in satellite style. Satellite is raster-only, so vector data must be added as separate sources

Build maps using MapTiler SDK with AI

Generate code like this satellite basemap with maptiler sdk example using the MapTiler SDK skill in your IDE.