Add support for "mapnik-geometry-type" in filters

See https://github.com/mapbox/carto/issues/180
This commit is contained in:
Sandro Santilli 2012-11-02 11:59:14 +01:00
parent a21a195f1b
commit 66216f7c7d

View File

@ -1,6 +1,13 @@
(function(tree) { (function(tree) {
tree.Filter = function Filter(key, op, val, index, filename) { tree.Filter = function Filter(key, op, val, index, filename) {
// See https://github.com/mapbox/carto/issues/180
// TODO: use mapnik-reference for these conversion ?
if ( key == "mapnik-geometry-type" ) {
key = "mapnik::geometry_type"
}
if (key.is) { if (key.is) {
this.key = key.value; this.key = key.value;
this._key = key; this._key = key;