Gallery: 外观主题:地图(Map):修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
 
第1行: 第1行:
This is a quick start to a page about the GoogleMap Theme (created by [http://gallery.menalto.com/user/32052 LarryDoliver]).
这是有关GoogleMap外观主题的简介页面(由[http://gallery.menalto.com/user/32052 LarryDoliver]创建)。


If you found your way here, you might also be interested in [[Gallery2:Modules:Map|The GoogleMap Module]]. There is also a GPS module (see: [[Gallery2:Modules:Gps]]) that allows for export to Google Earth.
既然你能看到此页面,那么可能你也会对[[Gallery2:Modules:Map| GoogleMap模块]]感兴趣了。另外还有一个GPS模块(参见:[[Gallery2:Modules:Gps]]),它允许向Google Earth进行导出。


== Installation ==
== 安装 ==
# Download the GoogleMap Theme:
# 下载GoogleMap外观主题:
#*For G2.0 [http://gallery.menalto.com/files/map-theme-1.0.3b.zip Download(v1.0.3a)] or [http://gallery.menalto.com/files/mapTheme_1.0.4a.zip Download(v1.0.4a)]
#*针对G2.0 [http://gallery.menalto.com/files/map-theme-1.0.3b.zip 下载(v1.0.3a)][http://gallery.menalto.com/files/mapTheme_1.0.4a.zip (v1.0.4a)]
#*For G2.1 [http://gallery.menalto.com/files/map%201.0.5.zip Download(v1.0.5)]
#*针对G2.1 [http://gallery.menalto.com/files/map%201.0.5.zip 下载(v1.0.5)]
#*For G2.1 and Google Maps API-V2''': [http://prdownloads.sourceforge.net/gmap-module/mapTheme_1.0.7.zip?download Download(v1.0.7)]
#*针对G2.1和Google Maps API-V2'''[http://prdownloads.sourceforge.net/gmap-module/mapTheme_1.0.7.zip?download 下载(v1.0.7)]
# unzip it and put the resulting map/ folder in your themes/ folder
# 将其解压并放到themes/ 文件夹下的结果map/文件夹中
# log in to your gallery install as the admin
# 以管理员身份登入gallery
# go to the administration page
# 打开管理页面
# go to the Themes section
# 外观主题部分
# click on the All Themes tab - Map should show up as one of the themes
# 点击All Themes标签- Map应当为某个外观主题
# install the Map theme
# 安装Map外观主题
# activate the Map theme
# 激活Map外观主题


Note: You need to install and activate the Custom Fields module for the theme to work you can download it here [http://codex.gallery2.org/index.php/Gallery2:Download#Modules Custom Fields]
注:你需要安装并激活Custom Fields模块来让外观主题起作用,你可以在此下载它[http://codex.gallery2.org/index.php/Gallery2:Download#Modules Custom Fields]


== Basic Configuration ==
== 基本配置 ==
Via the web:
通过web:
# log in to Gallery
# 登入Gallery
# In the Themes section of the administration page you should now have a Map tab. Click on it
# 在管理页面的外观主题部分应能看到一个Map标签。点击它
# paste your Google Map API key (which you can get from [http://www.google.com/apis/maps/signup.html here]) into the appropriate field (6 up from the bottom)
# 将Google Map API key粘贴下来(API密钥可以在[http://www.google.com/apis/maps/signup.html此]获取)
# save it
# 保存


== Using The Map Theme ==
== 使用Map外观主题 ==
Set up a single album::
建立单个相册::
# set up the theme for an album
# 为某个相册建立外观主题
## log in to Gallery
## 登入Gallery
## Navigate to the album to which you want the Map theme applied
## 浏览希望应用Map外观主题的相册
## Click the Edit Album link
## 点击编辑相册链接
## Click the Custom Fields tab
## 点击Custom Fields标签
## Add a Photo field called GPS (NOTE: for version 1.0.7 you should add two custom fields... GPSLAT and GPSLON ...the GPS field is not necessary)
## 添加一名为GPA的相片字段(注:对1.0.7版本来说,你应当添加2个自定义字段GPSLAT和GPSLON,而GPS字段则不需要)
## Save
## 保存


# enter the GPS info for the images in the album, Edit each image
# 输入相册中图片的GPS信息,对各图片进行编辑
## for each one, click on the Custom Field tab
## 对于每个图片,点击Custom Field标签
## enter the appropriate lat and long values (NOTE: the Map module provides a handy way to get that info (see the module page for details), so you might want it installed even if you aren't planning on using it)
## 输入适当的经纬度数值(注:Map模块提供一便捷方法来获取此信息(详细信息请参见模块页面),所以就算不打算使用它,也最好安装一下)


# Click the Album tab
# 点击Album标签
## Set the theme to Map
## 将外观主题设定为Map
## Save
## 保存
## Click the Theme tab
## 点击Theme标签
## You're now on a page very similar to the one you encountered in Basic Configuration except that the configuration here applies only to this album. This is probably the point at which you want to set the initial center (lat and long (format: lat,long)), zoom level (0..17, lower is more zoomed in (NOTE: for version 1.0.7 higher is more zoomed in)), and map type of the theme. Other configuration of what's displayed and where also occurs on this page.
## 现在你所在的页面与之前在基本配置中碰到的页面很想色,但在此做的配置仅应用于该相册。你很可能希望在此设定初始中心位置(经纬度(格式:lat,long)),缩放级别(0..17,数值越低,放大倍数越高(注:1.0.7版本里则是数字越大放大倍数越高)),以及外观主题的map类型。此页上还有其他的配置选项。
## Save
## 保存
Set up an album with sub-albums(s):
建立一个具有子相册的相册:
##-Create an album.
##-创建一个相册。
##-Edit customfields
##-编辑customfield
##-Add a common field named GPSLAT and one named GPSLON
##-添加名为GPSLAT和GPSLON的常见字段
##-Add items (photos) to this album
##-向该相册添加项目(相片)
##-Edit their GPSLAT and GPSLON customfields and add coordinates
##-编辑GPSLAT和GPSLON的customfield并添加坐标
##-Add a sub-album
##-添加一个子相册
##-Edit it's GPSLAT and GPSLON customfields and add coordinates
##-编辑该子相册的GPSLAT和GPSLON的customfield并添加坐标
##-Add items (photos) to the sub-album
##-向该子相册添加项目(相片)
##-Edit their GPSLAT and GPSLON customfields and add coordinates
##-编辑GPSLAT和GPSLON的customfield并添加坐标
##-Set the sub-album theme to the map theme
##-将子相册的外观主题设为map外观主题
##-Set the theme of the sub-albums's parent to the map theme
##-将子相册的上级相册外观主题设为map外观主题
##-Access the parent album
##-登入上级相册
##-The map will show green markers representing the items (photos) in the parent album
##- map会将上级相册中的项目以绿色标记表示出来
##-The sub-album on this map will have a red marker representing the sub-album
##-该map上的子相册会以红色标记表示出来
##-Click the red marker and a new map will be displayed showing green markers representing the items (photos) in the sub-album
##-点击红色标记,新map会将自相册中的项目以绿色标记表示出来
## NOTE: Both album and item marker colors are selectable in version 1.0.7
## 注:1.0.7版本中,相册和项目标记的颜色可选择


[[Category:Gallery 2:Themes|Map]]
[[Category:Gallery 2:Themes|Map]]

2008年10月30日 (四) 15:52的最新版本

这是有关GoogleMap外观主题的简介页面(由LarryDoliver创建)。

既然你能看到此页面,那么可能你也会对 GoogleMap模块感兴趣了。另外还有一个GPS模块(参见:Gallery2:Modules:Gps),它允许向Google Earth进行导出。

安装[ ]

  1. 下载GoogleMap外观主题:
  2. 将其解压并放到themes/ 文件夹下的结果map/文件夹中
  3. 以管理员身份登入gallery
  4. 打开管理页面
  5. 外观主题部分
  6. 点击All Themes标签- Map应当为某个外观主题
  7. 安装Map外观主题
  8. 激活Map外观主题

注:你需要安装并激活Custom Fields模块来让外观主题起作用,你可以在此下载它Custom Fields

基本配置[ ]

通过web:

  1. 登入Gallery
  2. 在管理页面的外观主题部分应能看到一个Map标签。点击它
  3. 将Google Map API key粘贴下来(API密钥可以在[1]获取)
  4. 保存

使用Map外观主题[ ]

建立单个相册::

  1. 为某个相册建立外观主题
    1. 登入Gallery
    2. 浏览希望应用Map外观主题的相册
    3. 点击编辑相册链接
    4. 点击Custom Fields标签
    5. 添加一名为GPA的相片字段(注:对1.0.7版本来说,你应当添加2个自定义字段GPSLAT和GPSLON,而GPS字段则不需要)
    6. 保存
  1. 输入相册中图片的GPS信息,对各图片进行编辑
    1. 对于每个图片,点击Custom Field标签
    2. 输入适当的经纬度数值(注:Map模块提供一便捷方法来获取此信息(详细信息请参见模块页面),所以就算不打算使用它,也最好安装一下)
  1. 点击Album标签
    1. 将外观主题设定为Map
    2. 保存
    3. 点击Theme标签
    4. 现在你所在的页面与之前在基本配置中碰到的页面很想色,但在此做的配置仅应用于该相册。你很可能希望在此设定初始中心位置(经纬度(格式:lat,long)),缩放级别(0..17,数值越低,放大倍数越高(注:1.0.7版本里则是数字越大放大倍数越高)),以及外观主题的map类型。此页上还有其他的配置选项。
    5. 保存

建立一个具有子相册的相册:

    1. -创建一个相册。
    2. -编辑customfield
    3. -添加名为GPSLAT和GPSLON的常见字段
    4. -向该相册添加项目(相片)
    5. -编辑GPSLAT和GPSLON的customfield并添加坐标
    6. -添加一个子相册
    7. -编辑该子相册的GPSLAT和GPSLON的customfield并添加坐标
    8. -向该子相册添加项目(相片)
    9. -编辑GPSLAT和GPSLON的customfield并添加坐标
    10. -将子相册的外观主题设为map外观主题
    11. -将子相册的上级相册外观主题设为map外观主题
    12. -登入上级相册
    13. - map会将上级相册中的项目以绿色标记表示出来
    14. -该map上的子相册会以红色标记表示出来
    15. -点击红色标记,新map会将自相册中的项目以绿色标记表示出来
    16. 注:1.0.7版本中,相册和项目标记的颜色可选择