Skip to content

Add a WMS source

Add an external Web Map Service raster layer to the map using addSource's tiles option.

---
title: Add a WMS source
description: Add an external Web Map Service raster layer to the map using addSource's tiles option.
type: raster
options:
  center: [-74.5447, 40.6892]
  zoom: 8
style:
  extends: https://styles.trailsta.sh/osm-liberty.json
  layers:
    - type: raster
      beforeLayerId: aeroway_fill
---
https://img.nj.gov/imagerywms/Natural2015?bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857&transparent=true&width=512&height=512&layers=Natural2015


View Map on Ultra
Edit Query on Ultra
View MapLibre Example