File tree Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 22
33Eddy Verbruggen https://github.com/EddyVerbruggen
44Yermo Lamers https://github.com/Yermo
5+ Martin Guillon https://github.com/farfromrefug
56
67# Contributors
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ The style can be set to one of the Mapbox style names or it can be the URL of yo
6565
6666## Demo prerequisites
6767```
68+ npm i
6869npm run setup
6970```
7071
Original file line number Diff line number Diff line change 1515 }
1616 },
1717 "scripts" : {
18- "setup" : " npm i && ts-patch install" ,
18+ "setup" : " ts-patch install" ,
1919 "build.angular" : " ng-packagr -p src/angular/package.json -c src/angular/tsconfig.json" ,
2020 "clean" : " rimraf ./plugin/**/*.d.ts ./plugin/**/*.js ./plugin/**/*.js.map plugin/node_modules plugin/package-lock.json plugin/README.md demo/node_modules demo-angular/node_modules" ,
2121 "tsc" : " cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck -d" ,
Original file line number Diff line number Diff line change @@ -6,4 +6,3 @@ export * from './mapbox.ios';
66
77// Export any shared classes, constants, etc.
88export * from './mapbox.common' ;
9-
Original file line number Diff line number Diff line change @@ -4088,7 +4088,7 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
40884088
40894089 // ----------------------------------------------------------------------------------
40904090
4091- getLayers ( nativeMap ?: any ) : Promise < Array < LayerCommon > > {
4091+ getLayers ( nativeMap ?: any ) : Promise < LayerCommon [ ] > {
40924092 return new Promise ( ( resolve , reject ) => {
40934093 try {
40944094 const theMap = nativeMap || this . _mapboxMapInstance ;
Original file line number Diff line number Diff line change @@ -626,7 +626,7 @@ export interface MapboxApi {
626626
627627 getLayer ( name : string , nativeMap ?: any ) : Promise < LayerCommon > ;
628628
629- getLayers ( nativeMap ?: any ) : Promise < Array < LayerCommon > > ;
629+ getLayers ( nativeMap ?: any ) : Promise < LayerCommon [ ] > ;
630630
631631 // addSource(options: AddSourceOptions): Promise<any>;
632632
@@ -773,7 +773,7 @@ export interface MapboxViewApi {
773773
774774 getLayer ( name : string , nativeMap ?: any ) : Promise < LayerCommon > ;
775775
776- getLayers ( nativeMap ?: any ) : Promise < Array < LayerCommon > > ;
776+ getLayers ( nativeMap ?: any ) : Promise < LayerCommon [ ] > ;
777777
778778 destroy ( ) : Promise < any > ;
779779
@@ -936,7 +936,7 @@ export abstract class MapboxViewCommonBase extends ContentView implements Mapbox
936936 getLayer ( name : string , nativeMap ?: any ) : Promise < LayerCommon > {
937937 return this . mapbox . getLayer ( name , nativeMap ) ;
938938 }
939- getLayers ( nativeMap ?: any ) : Promise < Array < LayerCommon > > {
939+ getLayers ( nativeMap ?: any ) : Promise < LayerCommon [ ] > {
940940 return this . mapbox . getLayers ( nativeMap ) ;
941941 }
942942 destroy ( ) : Promise < any > {
You can’t perform that action at this time.
0 commit comments