You can use Maps SDK for Unity with a different semantic tile server,
beginning with version 1638. To do this, configure
MapsService
instances with
FeatureTileApiUrlFormat
and
TerrainTileApiUrlFormat
options using the Inspector. Those options need to be valid string formats
that can be formatted with String.Format
method using tile coordinates in the order of x
, y
, zoom
. The formatted
string also needs to be a valid HTTP URI. ArgumentException
will be thrown if
the input can't be formatted correctly into a valid HTTP URI for requesting
tiles.
When the camera's viewport is updated to a new location, or to a new zoom level, the Maps SDK for Unity determines which tiles are needed and translates that information into a set of tiles to retrieve using Mercator tile coordinates.
Examples:
The following example URL shows the correct format to use:
https://example.com/featuretiles/@{0},{1},{2}z
The following example URLs are invalid:
- Incorrect number of format items:
https://example.com/featuretiles/@{0},{1},{2},{3}z
- Invalid URL:
example.com/featuretiles/@{0},{1},{2}z
- Unsupported scheme:
ftp://example.com/featuretiles/@{0},{1},{2},{3}z