var map = new maptalks.Map('map', {
  center: [-74.08087539941407, 40.636167734187026],
  zoom: 14,
  attribution: {
    content: '$(attribution)'
  },
  // baseLayer: new maptalks.TileLayer('base', {
  //   urlTemplate: '$(urlTemplate)',
  //   subdomains: $(subdomains)
  // }),
  spatialReference : {
    projection : 'baidu'
  },
  baseLayer: new maptalks.TileLayer('base', {
    'urlTemplate' : 'http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1',
    'subdomains'  : [0,1,2,3,4,5,6,7,8,9]
  })
});

changeView();

function changeView() {
  map.animateTo({
    center: [-74.08087539941407, 40.636167734187026],
    zoom: 12,
    pitch: 0,
    bearing: 10
  }, {
    duration: 5000
  });
  setTimeout(function () {
    map.animateTo({
      center: [-74.24807358056641, 40.50564314093256],
      zoom: 16,
      pitch: 0,
      bearing: 360
    }, {
      duration: 7000
    });
  }, 5120);
}

var map = new maptalks.Map('map', {
  center: [-74.08087539941407, 40.636167734187026],
  zoom: 14,
  attribution: {
    content: '&copy; BAIDU'
  },
  spatialReference : {
    projection : 'baidu'
  },
  baseLayer: new maptalks.TileLayer('base', {
    urlTemplate : 'https://gss{s}.bdstatic.com/8bo_dTSlRsgBo1vgoIiO_jowehsv/tile/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&udt=20170927',
    subdomains:[0, 1, 2, 3]
  })
});

changeView();

function changeView() {
  map.animateTo({
    center: [-74.08087539941407, 40.636167734187026],
    zoom: 12,
    pitch: 0,
    bearing: 10
  }, {
    duration: 5000
  });
  setTimeout(function () {
    map.animateTo({
      center: [-74.24807358056641, 40.50564314093256],
      zoom: 16,
      pitch: 0,
      bearing: 360
    }, {
      duration: 7000
    });
  }, 5120);
}

fix http baidu