Waze Map Editor JavaScript SDK
    Preparing search index...

    Class MapComments

    Methods for dealing with MapComments.

    Index
    • Adds a new map comment to the WME data model.

      Parameters

      • args: {
            body?: string;
            endDate?: number | null;
            geometry: Point | Polygon;
            lockRank?: UserRank;
            subject: string;
        }
        • Optionalbody?: string

          The body of the comment.

        • OptionalendDate?: number | null

          The expiration date of the comment in the timezone of the comment location.

        • geometry: Point | Polygon

          The GeoJSON representation of the comment's location.

        • OptionallockRank?: UserRank

          The lock rank of the comment.

        • subject: string

          The subject of the comment.

      Returns MapComment

      the created map comment.

      ValidationError if endDate is invalid.

      InvalidStateError if provided lockRank is higher than the current user rank.

    • Deletes a map comment from the WME data model.

      Parameters

      • args: { mapCommentId: string }
        • mapCommentId: string

          An id of the map comment to delete.

      Returns null

      null.

      DataModelNotFoundError if the specified map comment cannot be found in the data model.

    • Parameters

      • args: { mapCommentId: string }
        • mapCommentId: string

          An id of the map comment to find.

      Returns MapComment | null

      map comment with id, or null if not found in the WME data model

    • Updates a map comment in the WME data model.

      Parameters

      • args: {
            body?: string;
            endDate?: number | null;
            geometry?: Point | Polygon;
            lockRank?: UserRank;
            mapCommentId: string;
            subject?: string;
        }
        • Optionalbody?: string

          The body of the comment.

        • OptionalendDate?: number | null

          The expiration date of the comment in the timezone of the comment location.

        • Optionalgeometry?: Point | Polygon

          The GeoJSON representation of the comment's location.

        • OptionallockRank?: UserRank

          The lock rank of the comment.

        • mapCommentId: string

          An id of the map comment to edit.

        • Optionalsubject?: string

          The subject of the comment.

      Returns MapComment

      the updated map comment.

      ValidationError if endDate is invalid.

      InvalidStateError if provided lockRank is higher than the current user rank.

      DataModelNotFoundError if the specified map comment cannot be found in the data model.