JavaScript/jQuery Map - apiKey

Keys to authenticate the component within map providers.

Type:

String

|

Object

Default Value: { bing: '', google: '', googleStatic: '' }

If you have more than one map provider in your application, specify the keys in the object fields as shown below. Otherwise, you can assign the key directly to the apiKey property.

index.js
  • $(function() {
  • $("#mapContainer").dxMap({
  • // ...
  • apiKey: {
  • bing: "MY_BING_MAPS_KEY",
  • google: "MY_GOOGLE_MAPS_KEY",
  • googleStatic: "MY_GOOGLE_STATIC_MAPS_KEY"
  • }
  • });
  • });
NOTE
The value of this property cannot be changed dynamically.

bing

A key used to authenticate the component within Bing Maps.

Type:

String

Default Value: ''

google

A key used to authenticate the component within Google Maps.

Type:

String

Default Value: ''

googleStatic

A key used to authenticate the component within Google Maps Static.

Type:

String

Default Value: ''