我按照说明设置 MapBox 地图小部件并在我的配置文件中设置这些变量,但 MapBox 地图小部件仅在我上传和查看 GeoJSON 文件时有效,当我上传 csv 文件并使用纬度和经度绘制点时,它仍然使用 MapQuest Map Widget Base Layer,知道为什么会这样吗?我以为我正在通过更改这些变量来更改所有地图的基础层。我还检查以确保未在配置文件中的任何位置定义 mapquest。
ckanext.spatial.common_map.type = mapbox
ckanext.spatial.common_map.mapbox.map_id = youraccount.map-xxxxxxxx
http://docs.ckan.org/projects/ckanext-spatial/en/latest/map-widgets.html