CartoDB / tangram-cartocss

⛔️ DEPRECATED Transform cartocss into a draw tangram object
https://cartodb.github.io/tangram-cartocss/
BSD 3-Clause "New" or "Revised" License
4 stars 3 forks source link

Disable conditional allow overlap #59

Closed IagoLast closed 7 years ago

IagoLast commented 7 years ago

[#58] As discussed in #55 and documented in the docs once this PR is merged an error will be thrown if conditional marker-allow-overlap is found.

Aceptance criteria

IagoLast commented 7 years ago

Regarding to the zoom issue.

The zoom is not in the filters array (we have this.filters and this.zoom).

Carto generates the js rules adding a "zoom" filter by default so when there are no filters the rules are like this:

if(zoom < infinity) {  // Always true
  _value = 'foo';
}

This was making the filtered value to always return true.

I changed that and I removed a bug to create a new one!

I guess I have to change the CARTO code again, to consider the zoom for the filtered field only when the zoom is smaller than the maximun value.

alonsogarciapablo commented 7 years ago

I guess I have to change the CARTO code again, to consider the zoom for the filtered field only when the zoom is smaller than the maximum value.

I opened an issue to take care of this: https://github.com/CartoDB/carto/issues/40