File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ export class MapboxView extends MapboxViewBase {
432
432
433
433
console . log ( "MapboxView:initMap(): top - accessToken is '" + this . config . accessToken + "'" , this . config ) ;
434
434
435
- if ( ! this . nativeMapView && ( this . config . accessToken || this . settings . accessToken ) ) {
435
+ if ( ! this . nativeMapView && ( this . config && this . config . accessToken || this . settings && this . settings . accessToken ) ) {
436
436
437
437
this . mapbox = new Mapbox ( ) ;
438
438
@@ -830,7 +830,7 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
830
830
//
831
831
// FIXME: Even if using a local server add some string.
832
832
833
- if ( settings . accessToken === undefined ) {
833
+ if ( settings . accessToken === undefined ) {
834
834
reject ( "Please set the 'accessToken' parameter" ) ;
835
835
return ;
836
836
}
You can’t perform that action at this time.
0 commit comments