# Load map from configuration

Map will show up here under JavaScript/Typescript mode

## JavaScript

```javascript
Microsoft.Maps.ConfigurableMap.createFromConfig(
    document.getElementById('myMap'),
    'https://bingmapsisdk.blob.core.windows.net/isdksamples/configmap2.json', /* configuration JSON */
    false, /* whether downloading the above JSON needs withCredentials property */
    null, /* Set of headers that may be needed to download the above JSON */
    successCallback,
    errorCallback
);

function successCallback(mapObj){
    document.getElementById('printoutPanel').innerHTML='success';
}

function errorCallback(message){
    document.getElementById('printoutPanel').innerHTML=message;
}
```

### Additional details

This example shows how to load the map including additional modules and layers based on a configuration URL.
