release: 1.0.0+8
This commit is contained in:
@ -34,9 +34,9 @@ class _CustomMapStyleState extends State<_CustomMapStyleBody> {
|
||||
_customStyleOptions.styleExtraData =
|
||||
styleExtraByteData.buffer.asUint8List();
|
||||
//如果需要加载完成后直接展示自定义地图,可以通过setState修改CustomStyleOptions的enable为true
|
||||
// setState(() {
|
||||
// _customStyleOptions.enabled = true;
|
||||
// });
|
||||
setState(() {
|
||||
_customStyleOptions.enabled = true;
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -88,8 +88,8 @@ class _MapUiBodyState extends State<_MapUiBody> {
|
||||
Widget build(BuildContext context) {
|
||||
final AMapWidget map = AMapWidget(
|
||||
///必须正确设置的合规隐私声明,否则SDK不会工作,会造成地图白屏等问题。
|
||||
privacyStatement: ConstConfig.amapPrivacyStatement,
|
||||
apiKey: ConstConfig.amapApiKeys,
|
||||
// privacyStatement: ConstConfig.amapPrivacyStatement,
|
||||
// apiKey: ConstConfig.amapApiKeys,
|
||||
initialCameraPosition: _kInitialPosition,
|
||||
mapType: _mapType,
|
||||
trafficEnabled: _trafficEnabled,
|
||||
@ -362,6 +362,7 @@ class _MapUiBodyState extends State<_MapUiBody> {
|
||||
void onMapCreated(AMapController controller) {
|
||||
setState(() {
|
||||
_controller = controller;
|
||||
|
||||
printApprovalNumber();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user