Skip to content

Commit

Permalink
type(DistrictLayer): fix DistrictLayer error. (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 25, 2023
1 parent c013eec commit 888b9bd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/types/src/district.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ declare namespace AMap {
* - 省市简易行政区图层 AMap.DistrictLayer.Province [相关示例](https://lbs.amap.com/api/jsapi-v2/example/district/district-pro)
*/
class DistrictLayer<DistrictLayerStyle = any> {
World: typeof World;
Country: typeof Country;
Province: typeof Province;
constructor(opts: DistrictLayerOptions);
/** 设定显示的国家 SOC */
setSOC(SOC: string): void;
Expand Down Expand Up @@ -69,7 +66,9 @@ declare namespace AMap {
*/
styles?: DistrictLayerStyle;
}
class World extends DistrictLayer {}
class Country extends DistrictLayer {}
class Province extends DistrictLayer {}
namespace DistrictLayer {
class World extends DistrictLayer {}
class Country extends DistrictLayer {}
class Province extends DistrictLayer {}
}
}

1 comment on commit 888b9bd

@vercel
Copy link

@vercel vercel bot commented on 888b9bd Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

react-amap – ./

react-amap-one.vercel.app
react-amap-git-master-398188662.vercel.app
react-amap-398188662.vercel.app

Please sign in to comment.