當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python ArcGIS Gallery用法及代碼示例

本文簡要介紹 python 語言中 arcgis.apps.storymap.story_content.Gallery 的用法。

用法:

class arcgis.apps.storymap.story_content.Gallery(**kwargs)

基礎:object

表示 image gallery 的類

要開始一個新畫廊,隻需調用類。一旦添加到故事中,您最多可以添加 12 張圖像。

# Images to add to the gallery.
>>> image1 = Image(<url or path>)
>>> image2 = Image(<url or path>)
>>> image3 = Image(<url or path>)

# Create a gallery and add to story before adding images to it.
>>> gallery = Gallery()
>>> my_story.add(gallery)
>>> gallery.add_images([image1, image2, image3])

相關用法


注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.apps.storymap.story_content.Gallery。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。