From f83d9ec628a3453efc819d15aa12cda7f9f38dff Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 29 Nov 2023 10:06:39 +0800 Subject: [PATCH] conf: mapbox token --- src/components/MapCountry.jsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/MapCountry.jsx b/src/components/MapCountry.jsx index d19062d..0665688 100644 --- a/src/components/MapCountry.jsx +++ b/src/components/MapCountry.jsx @@ -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',