react-amap创建地图, 主题样式怎么修改

 <Map
  zoom={15}
  amapkey={amapJskey}
  center={this.state.selected_location.latitude && this.state.selected_location || null}
  events={this.mapEvents}
 plugins={['ToolBar']}
>
  {this.state.selected_location.latitude &&
   <AMap.Marker position={this.state.selected_location} />}
</Map>

创建高德地图, 怎么修改主题样式
js 里可以用 map.setMapStyle();
react-amap 里怎么使用啊

阅读 5k
2 个回答
新手上路,请多包涵

<Map events={{ created: (el) => {this.myMap = el;}}} />
当你使用map实例时,this.myMap.setMapStyle();

推荐问题