React Map - providerConfig

A provider configuration object.

Selector: ProviderConfig
Type:

Object

Default Value: { mapId: '', useAdvancedMarkers: true }

App.vue
  • <template>
  • <DxMap ...
  • provider="google"
  • api-key="YOUR_API_KEY"
  • >
  • <DxProviderConfig
  • map-id="YOUR_GOOGLE_MAP_ID"
  • />
  • </DxMap>
  • </template>
  •  
  • <script>
  • import 'devextreme/dist/css/dx.light.css';
  •  
  • import DxMap, {
  • DxProviderConfig
  • } from 'devextreme-vue/map';
  •  
  • export default {
  • components: {
  • DxMap,
  • DxProviderConfig
  • }
  • }
  • </script>

mapId

Specifies a map ID for the google and googleStatic providers.

Type:

String

Default Value: ''

This property is required if you use markers.

useAdvancedMarkers Deprecated

Specifies whether to use advanced markers with the google and googleStatic providers.

Type:

Boolean

Default Value: true