Vue Map - key

A key used to authenticate the application within the required map provider.

Type:

String

|

Object

Default Value: ''

App.vue
  • <template>
  • <dx-map ... >
  • <dx-key
  • bing="MY_BING_MAPS_KEY"
  • google="MY_GOOGLE_MAPS_KEY"
  • googleStatic="MY_GOOGLE_STATIC_MAPS_KEY"
  • />
  • </dx-map>
  • </template>
  •  
  • <script>
  • import 'devextreme/dist/css/dx.common.css';
  • import 'devextreme/dist/css/dx.light.css';
  •  
  • import DxMap, {
  • DxKey
  • } from 'devextreme-vue/map';
  •  
  • export default {
  • components: {
  • DxMap,
  • DxKey
  • }
  • }
  • </script>
NOTE
The value of this option cannot be changed dynamically.

bing

A key used to authenticate the application within the "Bing" map provider.

Type:

String

Default Value: ''

google

A key used to authenticate the application within the "Google" map provider.

Type:

String

Default Value: ''

googleStatic

A key used to authenticate the application within the "Google Static" map provider.

Type:

String

Default Value: ''