Add support for "mapnik-geometry-type" in filters
See https://github.com/mapbox/carto/issues/180
This commit is contained in:
parent
a21a195f1b
commit
66216f7c7d
@ -1,6 +1,13 @@
|
||||
(function(tree) {
|
||||
|
||||
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) {
|
||||
this.key = key.value;
|
||||
this._key = key;
|
||||
|
Loading…
Reference in New Issue
Block a user