Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Photo

Index

Functions

closePhotoPopup

  • closePhotoPopup(): void
  • JMap.Photo.closePhotoPopup

    If displayed, close the photo popup

    example
    
    // Close the photo popup
    JMap.Photo.closePhotoPopup()

    Returns void

displayFeaturePhotosPopup

  • displayFeaturePhotosPopup(layerId: JId, featureId: JId): Promise<void>
  • JMap.Photo.displayFeaturePhotosPopup

    Display the photos of a given feature of a given layer.

    example
    
    // Display the photos of feature id="345" in layer id="4"
    JMap.Photo.displayFeaturePhotosPopup(4, 345)

    Parameters

    • layerId: JId

      the JMap layer id

    • featureId: JId

      the JMap feature id

    Returns Promise<void>

displayPhotosPopup

  • JMap.Photo.displayPhotosPopup

    Display your custom photos.

    example
    
    // Display the photos of feature id="345" in layer id="4"
    JMap.Photo.displayPhotosPopup(4, 345)

    Parameters

    Returns void

downloadById

  • downloadById(photoId: JId): Promise<void>
  • JMap.Photo.downloadById

    Triggers a file download for a given photo id.

    example
    
    // download photo id="3"
    JMap.Photo.downloadById(3)

    Parameters

    Returns Promise<void>