Skip to main content

XYZ Tiles

Configure a raster XYZ tile source from a URL template ({z}/{x}/{y}).

Syntax​

{ "id": "n1", "op": "xyz-tiles", "name": "xyz-tiles", "x": 0, "y": 0, "params": {} }

One out of it starts at "sourcePort": "sourceConfig"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:tileSize, or read elsewhere as ch('xyz-tiles/tileSize').

Inputs​

This operator has no input ports.

Parameters​

ParameterKindDefaultChoices
urlstring"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
subdomainsstring"abc"
tileSizefloat256
minZoomfloat0
maxZoomfloat19
attributionstring""

Outputs​

PortType
sourceConfigvalue

Details​

  • Category: Output
  • Operator: xyz-tiles

Older projects​

Projects saved before documents used operator classes. These convert to xyz-tiles when they open: XYZTileOp.