React Map - providerConfig
A provider configuration object.
Type:
Default Value: { mapId: '', useAdvancedMarkers: true }
App.js
- import React from 'react';
- import 'devextreme/dist/css/dx.fluent.blue.light.css';
- import Map, {
- ProviderConfig
- } from 'devextreme-react/map';
- const App = () => {
- return (
- <Map ...
- provider="google"
- apiKey="YOUR_API_KEY"
- >
- <ProviderConfig
- mapId="YOUR_GOOGLE_MAP_ID"
- />
- </Map>
- );
- }
- export default App;
useAdvancedMarkers
Specifies whether to use advanced markers with the google and googleStatic providers.
Type:
Default Value: true