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

See https://github.com/mapbox/carto/issues/180
master-mapnik-geometry-type
Sandro Santilli 12 years ago
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…
Cancel
Save