diff options
author | Aubrey Li <Aubrey-Li> | 2021-11-18 15:50:05 -0500 |
---|---|---|
committer | Aubrey Li <Aubrey-Li> | 2021-11-18 15:50:05 -0500 |
commit | e04e9520e7313089d8c6015f54b1ff0c4998552f (patch) | |
tree | 09b44294cf9d2c37f3328dfc39b4aa77d0fc05c0 /src/client/documents/Documents.ts | |
parent | dd9d82daf34f0036f84caceddaa7d75cf49041f1 (diff) |
mapbox latest
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 44f661df1..fc386f81a 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -158,6 +158,7 @@ export class DocumentOptions { z?: number; // whether document is in overlay (1) or not (0 or undefined) lat?: number; lng?: number; + infoWindowOpen?: boolean; author?: string; _layoutKey?: string; unrendered?: boolean; // denotes an annotation that is not rendered with a DocumentView (e.g, rtf/pdf text selections and links to scroll locations in web/pdf) @@ -785,8 +786,8 @@ export namespace Docs { return InstanceFromProto(Prototypes.get(DocumentType.MAP), new List(documents), options); } - export function MapMarkerDocument(lat: number, lng: number, documents: Array<Doc>, options: DocumentOptions, id?: string) { - return InstanceFromProto(Prototypes.get(DocumentType.MARKER), new List(documents), { lat, lng, ...options }, id); + export function MapMarkerDocument(lat: number, lng: number, infoWindowOpen: boolean, documents: Array<Doc>, options: DocumentOptions, id?: string) { + return InstanceFromProto(Prototypes.get(DocumentType.MARKER), new List(documents), { lat, lng, infoWindowOpen, ...options }, id); } export function KVPDocument(document: Doc, options: DocumentOptions = {}) { |