diff --git a/src/components/MapCountry.jsx b/src/components/MapCountry.jsx index 9e6a444..d19062d 100644 --- a/src/components/MapCountry.jsx +++ b/src/components/MapCountry.jsx @@ -22,16 +22,18 @@ export default observer((props) => { const config = { container: '#topC', map: { - // type: 'amap', - type: 'mapbox', - // style: 'blank', + type: 'amap', + // type: 'mapbox', + style: 'blank', center: [120.19382669582967, 30.258134], zoom: 2, pitch: 0, // scrollZoom: false, // dragPan: false, // zoomEnable: false, - // token: 'd78b5ba25a4699a1cb567b7a933e630b', // amap + // amap config + token: 'ac233dbc624b4d2f3f1ee1eb75d8c3bc', // amap JSAPI + mapStyle: 'amap://styles/light', }, // geoArea: { // url: 'https://gw.alipayobjects.com/os/alisis/geo-data-v0.1.2/choropleth-data',