Angular Map - providerConfig

A provider configuration object.

Selector: dxo-provider-config
Type:

Object

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

App.js
  • import React from 'react';
  • import 'devextreme/dist/css/dx.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;

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