conf: amap jsAPI

conf/amap
Lei OT 2 years ago
parent c17f8e8f85
commit 29ae7ea77b

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

Loading…
Cancel
Save