0

我在本地的 ubuntu 上安装了 mapbox,我正在尝试在这篇文章之后创建一个热图:https ://www.mapbox.com/blog/colorize-alpha-image-filter/ 。我上传了一些点数据并尝试使用此样式表设置图层样式:

{
    image-filters:colorize-alpha(teal,green,yellow,orange,red);
    comp-op:multiply;
    marker-allow-overlap:true;
    marker-file:url(/images/marker.png);
} 

当我保存项目时,我收到此错误:mapbox 错误:未知函数 colorize-alpha(),你的意思是 sobel(0)(第 73 行)

这是 tilemill 版本信息:

dpkg -s tilemill
Package: tilemill
Status: install ok installed
Priority: extra
Section: web
Installed-Size: 164411
Maintainer: Ian Ward <ian@developmentseed.org>
Architecture: amd64
Version: 0.10.1~precise2
Depends: libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.8.0), libmapnik (>= 2.1.0), libstdc++6 (>= 4.6), libwebkitgtk-1.0-0 (>= 1.3.10), zlib1g (>= 1:1.1.4), debconf (>= 0.5) | debconf-2.0, nodejs (>= 0.8.10), libsqlite3-0 (>= 3.6), libsqlite3-dev
Suggests: postgis
Conffiles:
 /etc/logrotate.d/tilemill.rotate 561d43af38d7890cab74ff103e8ba0c9
 /etc/init/tilemill.conf 3654de7aeee4893a705df3ed4ec00174
 /etc/tilemill/tilemill.config f2b0b4555cbeaed2506565b32941f435
Description: A modern map design studio.
 A modern map design studio powered by open source technology.
Homepage: http://github.com/mapbox/tilemill
4

1 回答 1

1

TileMill 0.10.1 中不提供 colorize-alpha 功能。要使用它,您需要 TileMill 的开发版本,例如从源代码构建

于 2014-03-18T17:59:04.823 回答