React Map - key
Use the apiKey property instead.
A key used to authenticate the application within the required map provider.
App.js
- import React from 'react';
- import 'devextreme/dist/css/dx.light.css';
- import Map, {
- Key
- } from 'devextreme-react/map';
- class App extends React.Component {
- render() {
- return (
- <Map ... >
- <Key
- bing="MY_BING_MAPS_KEY"
- google="MY_GOOGLE_MAPS_KEY"
- googleStatic="MY_GOOGLE_STATIC_MAPS_KEY"
- />
- </Map>
- );
- }
- }
- export default App;
NOTE
The value of this property cannot be changed dynamically.
bing
A key used to authenticate the application within the "Bing" map provider.
Type:
Default Value: ''
A key used to authenticate the application within the "Google" map provider.
Type:
Default Value: ''