react-map-gl - Make mapboxApiAccessToken prop optional (#29241)

* Make mapboxApiAccessToken optional

* Revise transformRequest
This commit is contained in:
Garrett Dawson
2018-10-01 21:12:58 -07:00
committed by Wesley Wigham
parent e15cb60ee0
commit b0b15a7a32
+4 -4
View File
@@ -23,20 +23,20 @@ export interface MapError {
export interface MapRequest {
url: string;
headers: {};
credentials: string;
headers?: { [index: string]: string };
credentials?: string;
}
export interface MapboxProps extends Partial<Viewport> {
container?: {};
mapboxApiAccessToken: string;
mapboxApiAccessToken?: string;
attributionControl?: boolean;
preserveDrawingBuffer?: boolean;
onLoad?: () => void;
onError?: (e: MapError) => void;
resuseMaps?: boolean;
resuseMap?: boolean;
transformRequest?: () => MapRequest;
transformRequest?: (url?: string, resourceType?: string) => MapRequest;
mapStyle?: string | {};