Compatibility with ArcGIS online
You can specify the style URL for your request in a VectorTileLayer
as shown below, make sure to also include your access token in the customParameters
argument. An access token is the only method of authentication compatible with the ArcGIS JavaScript API.
const vtlLayer = new VectorTileLayer({
url: "https://api.meteomatics.com/mvt/isolines/msl_pressure:hPa/style.json"
customParameters: {access_token: "eyJ0...PGw", datetime: "2021-01-01T0Z", model: "ecmwf-ifs", radius_median_filter: 2}
});
A full example is available at code-pen Meteomatics Isolines Demo. You will need to update the token variable that you can obtain by login with your Meteomatics account into https://login.meteomatics.com/api/v1/token.