conf: mapbox token

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

@ -22,8 +22,12 @@ export default observer((props) => {
const config = {
container: '#topC',
map: {
type: 'amap',
// type: 'mapbox',
// type: 'amap',
// token: 'ac233dbc624b4d2f3f1ee1eb75d8c3bc', // amap JSAPI
// mapStyle: 'amap://styles/light',
type: 'mapbox',
token: 'pk.eyJ1IjoibGVpLW90IiwiYSI6ImNscGo0Z2J0NzA0d2MybHBuZ2FkZnJpMnkifQ.SC8tOczc-9RVCktUGQayFA', // mapbox
style: 'blank',
center: [120.19382669582967, 30.258134],
zoom: 2,
@ -32,8 +36,6 @@ export default observer((props) => {
// dragPan: false,
// zoomEnable: false,
// 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',

Loading…
Cancel
Save