Replies: 3 comments 2 replies
-
Hello @ibesora, CARTO helper functions can be used in any layer. If you have data that it isn't GeoJSON you can use the Here you can see an example:
|
Beta Was this translation helpful? Give feedback.
-
The rationale for keeping these in the carto module is that adding such features to a big complex API requires quite a bit of thought, styling could be done in several ways. The leads decided that for the initial version we would let carto iterate on these helpers in their module and as we get some experience we might consider moving these, or some evolution of them, into the core. I don't think we have tech lead bandwidth at the moment to make immediate decisions on this, but as @Clebal said you can still use these functions in the general layers. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your input @Clebal and @ibgreen . Another question: Looking at the differences between the CARTOFrames data-driven styling and the current usage of the helper functions, you now need to be explicit on the domain of the colorBins, colorCategories and colorContinuous while in CARTOFrames you don't need to. Is that need to be more explicit something that deck.gl endorses? That goes hand in hand with having more layers that involve less work like a choropleth one. By the way @Clebal, congratulate everyone involved in bringing the helper functions to deck.gl |
Beta Was this translation helpful? Give feedback.
-
Looking at the deck.gl v8.4 release notes I saw that some helper functions were added to @deckgl/carto but unfortunately they only work on Carto*Layers which require a Carto account. Now, I can understand Carto's point of view on limiting that to their own layers but it would be awesome if we could use something that's not a Carto SQL sentence to populate those layers.
Having said that, in a more general sense, wouldn't it be great if deck.gl had something like the nice CARTOFrames data-driven styling options? You can create a choropleth map with automatic binning with just 2 lines of code
That brings up the question of why isn't there more basic layers that work automagically, like a choropleth one, instead of having the user compute all the binning, etc.
What's the rationale about not having them? Is this not the right project for something like this? Would that be a welcomed contribution to the project?
Beta Was this translation helpful? Give feedback.
All reactions