url

Deprecated

Method url() is deprecated in favor of data() method as they do the same thing

Replace with

data(value, dataId)

Parameters

value

an URL to a GeoJSON file, or an inline GeoJSON.

dataId

optional metadata to filter the SOURCE_DATA_LOADED events later. Empty string is treated as no data id.