-
Notifications
You must be signed in to change notification settings - Fork 263
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
Add performance tips to CARTO.js docs #2172
Conversation
src/api/v4/source/dataset.js
Outdated
* @returns {Promise} - A promise that will be fulfilled when the reload cycle is completed | ||
* @api | ||
*/ | ||
Dataset.prototype.setDataset = function (tableName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use setTableName
for that function since dataset.setDataset(tableName)
is a bit confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice guide, man. Helpful, clear, and to the point. 💯
docs/guides/04-performance-tips.md
Outdated
|
||
These style instances work the same way as sources do. It is pretty common to change styles in your map based on certain triggers, so that you can adequate your visualization to what you want to show. | ||
|
||
When linked to a layer, the will automatically show the style change by invoking `.setContent` on the style object with a string containing the new style content. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When linked to a layer, the will automatically show...
I am not sure if you wanted to say here they will automatically show
.
retest this please (not human retest 😂 ) |
Related to: #2168
Description
This PR adds a
Performance Guide
to the documentation to explain howsource
,style
,layer
anddataviews
interact with each other and how to change their attributes correctly.This PR also implements
.setDataset
incarto.source.Dataset
with the same behavior assetQuery
incarto.source.SQL