Comments (14)
From my side using that tileset it's okey
from carto-react.
@menusal can you create a map in builder and share it (with password if you want)? It sounds like a problem with data
from carto-react.
@padawannn https://gcp-us-east1.app.carto.com/map/366acf70-ecff-4544-8cba-0d198a8c9100
from carto-react.
Checking the map I can say that the widget doesn't show data because of dropping features. @VictorVelarde we should fix the infinite loading on C4R side.
from carto-react.
It'll be fixed with this https://github.com/CartoDB/cloud-native/pull/8919 where we're removing the aggregation of points.
The current behavior for layers using dynamic tiles is that if two points have the same coordinates will always be aggregated so the widget says that you should zoom in because some data is missing in the calculation.
Dynamic tiling is used for tables larger than 30MB or queries. So that's why it also happens with a limit 1000.
Using your query you can see how you already have duplicated points:
select st_x(geom), st_y(geom), count(*) as n from carto-dw-ac-glcwr7d.shared.usa_pos
group by st_x(geom), st_y(geom)
order by n desc
Of course it's wrong and will be fixed with this https://github.com/CartoDB/cloud-native/pull/8919. Can you try to use that dedicated and verify it's solved there? I would like to deploy it today or tomorrow.
cc: @moimart
from carto-react.
@alasarr, we don't have enough knowledge to test with a dedicated server, we need support.
So if you've tried it, merge it when you can.
from carto-react.
@alasarr, we don't have enough knowledge to test with a dedicated server, we need support.
So if you've tried it, merge it when you can.
@aaranadev if you open the PR that @alasarr comment (https://github.com/CartoDB/cloud-native/pull/8919) you will see in the comments something like this:
https://app-12.dev.carto.com/ is the link of the dedicated, you only need to sing up in this dedicated with your carto account and you will have access to the cloud-native version deployed in this dedicated
from carto-react.
Ohh great! Thank you @padawannn
from carto-react.
Hey guys we've been trying to create a simple FormulaWidget
from a tileset (carto-dw-ac-g1ktp5ij.shared.acs_sociodemogr_de06bf47
) in located in https://app-12.dev.carto.com/ ded with no luck. Please @padawannn @alasarr could you take a look? I'm not sure what's happening:
<FormulaWidget
id='total-population-widget'
title='Total population'
dataSource={DEMOGRAPHICS_SOURCE_ID}
column='total_pop'
operation={AggregationTypes.COUNT}
/>
from carto-react.
Hey guys we've been trying to create a simple
FormulaWidget
from a tileset (carto-dw-ac-g1ktp5ij.shared.acs_sociodemogr_de06bf47
) in located in https://app-12.dev.carto.com/ ded with no luck. Please @padawannn @alasarr could you take a look? I'm not sure what's happening:<FormulaWidget id='total-population-widget' title='Total population' dataSource={DEMOGRAPHICS_SOURCE_ID} column='total_pop' operation={AggregationTypes.COUNT} />
@AdriSolid can you publish the map and send us the link? If data are private you can publish it under a password
from carto-react.
Sorry for the noise guys, we just found the problem, if using onDataLoad
prop we must call that method from useCartoLayerProps
response, i.e:
onDataLoad: (data: TileJson) => {
const targetAttribute = data.tilestats.layers[0].attributes.find(
(attribute: TileJsonAttribute) => {
return attribute.attribute === STYLE_PROP
},
)
targetAttribute && setTilestat(targetAttribute)
cartoLayerProps?.onDataLoad?.(data) // NOTICE THIS
},
from carto-react.
Sorry for the noise guys, we just found the problem, if using
onDataLoad
prop we must call that method fromuseCartoLayerProps
response, i.e:onDataLoad: (data: TileJson) => { const targetAttribute = data.tilestats.layers[0].attributes.find( (attribute: TileJsonAttribute) => { return attribute.attribute === STYLE_PROP }, ) targetAttribute && setTilestat(targetAttribute) cartoLayerProps?.onDataLoad?.(data) // NOTICE THIS },
So I understand that everything works with the dedicated, right?
from carto-react.
Please confirm, so we can close the issue once ded code lands prod
from carto-react.
From my side using table source with the dedicated, it's ok.
from carto-react.
Related Issues (20)
- [RFC] Add a territory selector widget HOT 3
- [RFC] Save custom geometries created with the SpatialFilter HOT 2
- [RFC] Support for Drop a Pin HOT 3
- [RFC] Support for multi-language HOT 3
- [RFC] Comparative Widgets HOT 5
- [RFC] Save the state of the filters HOT 3
- [RFC] Spatial Filter HOT 11
- GeoJSON support in useCartoLayerProps HOT 1
- queryParameters HOT 7
- Remote executeModel doesn't work for POST requests HOT 4
- quadbinZoom error HOT 2
- Hygen is not working HOT 3
- [RFC] Widget size control HOT 1
- [RFC] Export AnimatedNumber component HOT 1
- [Bug] BarWidgetUI
- [RFC] Site Selection - Information element for widgets
- executeSQL function doesn't return the status error
- Allow passing decimal precision as a prop for CategoryWidgetUI HOT 4
- [Bug] ComparativeCategoryWidgetUI progress bar missing background color
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carto-react.