Coder Social home page Coder Social logo

Comments (14)

AdriSolid avatar AdriSolid commented on September 23, 2024 1

From my side using that tileset it's okey

from carto-react.

padawannn avatar padawannn commented on September 23, 2024

@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.

menusal avatar menusal commented on September 23, 2024

@padawannn https://gcp-us-east1.app.carto.com/map/366acf70-ecff-4544-8cba-0d198a8c9100

from carto-react.

padawannn avatar padawannn commented on September 23, 2024

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.

alasarr avatar alasarr commented on September 23, 2024

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

image

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.

aaranadev avatar aaranadev commented on September 23, 2024

@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.

padawannn avatar padawannn commented on September 23, 2024

@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:
Captura de pantalla 2022-09-06 a las 13 23 52

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.

aaranadev avatar aaranadev commented on September 23, 2024

Ohh great! Thank you @padawannn

from carto-react.

AdriSolid avatar AdriSolid commented on September 23, 2024

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}
/>

cc @aaranadev @menusal

from carto-react.

padawannn avatar padawannn commented on September 23, 2024

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}
/>

cc @aaranadev @menusal

@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.

AdriSolid avatar AdriSolid commented on September 23, 2024

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
},

cc @aaranadev @menusal

from carto-react.

padawannn avatar padawannn commented on September 23, 2024

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
},

cc @aaranadev @menusal

So I understand that everything works with the dedicated, right?

from carto-react.

VictorVelarde avatar VictorVelarde commented on September 23, 2024

Please confirm, so we can close the issue once ded code lands prod

from carto-react.

menusal avatar menusal commented on September 23, 2024

From my side using table source with the dedicated, it's ok.

from carto-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.