Skip to content

htb012/ckanext-basemaps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BaseMaps for CKAN

Installation

This plugin dependencies ckanext-spatial Plugin.

The current version of ckanext-basemaps has been developed and tested again CKAN 2.1.x. We assume a running CKAN 2.1.x instance. ※ CKAN2.3に動作可能を確認済(2015/6/19)

The installation has the following steps, assuming you have a running copy of CKAN:

  1. Install the extension from its source repository:

    (pyenv) $ pip install -e git+https://github.com/gsi-cyberjapan/ckanext-basemaps#egg=ckanext-basemaps
    

Configuration

These are the configuration options used by the extension

  1. Map Names:

    ckanext.basemaps.laylers.names = 地理院地図(標準), 地理院地図(白地図),電子国土基本図(オルソ画像)
    
  2. Map URLs:

    ckanext.basemaps.laylers.urls = http://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png, http://cyberjapandata.gsi.go.jp/xyz/blank/{z}/{x}/{y}.png, http://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg
    
  3. Attributions:

    ckanext.basemaps.laylers.attributions = 国土地理院,国土地理院,国土地理院
    
  4. plugins:

    ckan.plugins = ... spatial_metadata spatial_query mapbases_layer
    

#. HTML:: ./src/ckan/ckan/templates/package/search.htmlの70行目に以下の内容を追加する。

{% snippet "basemaps/snippets/tile_resource.html" %}

About

ckanext basemaps plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 46.8%
  • JavaScript 26.6%
  • CSS 15.7%
  • HTML 10.9%