Global Configuration
Public beta for Mapbox Search JS
Mapbox Search JS はパブリック ベータ版です。パブリック ベータ段階では、フレームワークが安定するにつれて変更される可能性があります。
This page includes reference documentation for the global config
singleton available in the Mapbox Search JS Web framework.
config
Global configuration singleton object storing settings shared across Search JS Web components.
Properties
accessToken
(string)
: A
Mapbox access token
used if one is not passed in explicitly to web components.
feedbackEnabled
(boolean)
: If true, Address Autofill address or marker location corrections will be submitted to the Mapbox Contribute API to help improve our data accuracy. Defaults to true.
Example
config.accessToken = 'pk.abc.123';
...
// Don't need to explicitly pass in token to some components
autofill({});
confirmAddress(form);
このsection on configは役に立ちましたか?
このpageは役に立ちましたか?