Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Animated option and add a new Aggregation method #9010

Closed
javisantana opened this issue Jul 20, 2016 · 13 comments · Fixed by #9239
Closed

Delete Animated option and add a new Aggregation method #9010

javisantana opened this issue Jul 20, 2016 · 13 comments · Fixed by #9239
Assignees
Labels

Comments

@javisantana
Copy link
Contributor

javisantana commented Jul 20, 2016

When style is set as animated some things needs to happen:

  • if the style applied does not use any variable it should work like it's working with now
  • if we have one style using "by value"
    • if it's a category attribute: torque style should use cdb_mode([attribute]) as aggregation and use the turbocarto for the category
    • if it's a ramp attribute: torque style should use avg([attribute]) as aggregation and use the turbocarto for ramps
  • if we have more than one style attribute using "by value" -> we can't do anything with torque here since we don't have multivariable torque <- cc @saleiva. One solution would be to disable animated when this happen but not sure how hard is to explain that limitation to the user.
@javisantana
Copy link
Contributor Author

cc @xavijam

@saleiva
Copy link
Contributor

saleiva commented Jul 20, 2016

When having by value in size and color, we will just keep color. if having
just one, we will keep that one.

@urbanphes we need to edit the component to say "Animated maps only support
one variable by value - or something like that" when this happens.

2016-07-20 16:38 GMT+02:00 javi santana notifications@github.com:

cc @xavijam https://github.com/xavijam


You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
#9010 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIENajtFfdOHvS03wUUPsl9di32DSMRks5qXjMDgaJpZM4JQ1wy
.

Sergio Alvarez Leiva

@xavijam xavijam added this to the Builder milestone Jul 20, 2016
@javisantana
Copy link
Contributor Author

@xavijam I'm going to do the style generation part

@xavijam
Copy link
Contributor

xavijam commented Jul 21, 2016

Ok!, but design is needed right?

@javisantana
Copy link
Contributor Author

yes, there are two parts of this issue:

  • style generation <- me
  • UI changes <- design team and you

@urbanphes
Copy link

From the UI;

@javisantana
Copy link
Contributor Author

dios os quiere

@saleiva saleiva assigned xavijam and unassigned saleiva Jul 25, 2016
@saleiva saleiva modified the milestones: Oropesa del Mar - builder, Builder Jul 25, 2016
@saleiva
Copy link
Contributor

saleiva commented Jul 25, 2016

Top priority since this can help with
#9097
#9100

And many more...

@saleiva saleiva changed the title change forms and style when animated maps are selected Delete Animated option and add a new Aggregation method Jul 25, 2016
@xavijam xavijam assigned nobuti and unassigned xavijam Jul 29, 2016
@xavijam
Copy link
Contributor

xavijam commented Jul 29, 2016

This will need migration changes from old editor to new one, cc @juanignaciosl.

@nobuti
Copy link
Contributor

nobuti commented Aug 4, 2016

In order to cluster all the animated types under the same aggregation, we need to segment the type (heatmap or pixel):

screen shot 2016-08-03 at 18 49 11

Note that TYPE selector changes whatever fields it needs.

@xavijam
Copy link
Contributor

xavijam commented Aug 8, 2016

Further to torque categories, I've tried what @javisantana proposed but I can't make it work. After a talk with @rochoa, that cdb_mode thing should use CDB_Math_Mode, but in any case it doesn't take into account the ramp color, it just take the first one. The thing I've tried is:

Map {
  -torque-frame-count: 172;
  -torque-animation-duration: 60;
  -torque-time-attribute: "cartodb_id";
  -torque-aggregation-function: "CDB_Math_Mode(category_n)";
  -torque-resolution: 4;
  -torque-data-aggregation: linear;
}
#layer {
  marker-width: 7;
  marker-fill: ramp([category_n], (blue, yellow, red)); // category_n -> strings
  marker-allow-overlap: true;
  marker-line-width: 1;
  marker-line-color: #fff;
  marker-line-opacity: 1;
}
#layer[frame-offset=1] {
  marker-width: 9;
  marker-fill-opacity: 0.5;
}
#layer[frame-offset=2] {
  marker-width: 11;
  marker-fill-opacity: 0.25;
}

@rochoa
Copy link
Contributor

rochoa commented Aug 9, 2016

Avoid using // comment style.

What torque.js version are you using?

@xavijam
Copy link
Contributor

xavijam commented Aug 9, 2016

I added the comment in the code above, not in the real CartoCSS.
Torque version 2.15.1 (from npm module).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants