CartoDB / d3.cartodb

Client-side rendering of CartoDB visualisations with d3
BSD 3-Clause "New" or "Revised" License
30 stars 6 forks source link

Map with layer and area of influence analysis is not rendering any feature when using vector tiles #187

Closed alonsogarciapablo closed 8 years ago

alonsogarciapablo commented 8 years ago

The following map is working in raster:

https://team.cartodb.com/u/pabloalonso/editor/8735ef56-2806-11e6-904c-0e787de82d45/embed

But not rendering any feature when setting vector flag to true:

https://team.cartodb.com/u/pabloalonso/editor/8735ef56-2806-11e6-904c-0e787de82d45/embed?vector=true

The map has one layer with an area of influence analysis of 100 km around points. I can see that geojson tiles do have features, but for some reason they are not being rendered properly.

For example, the "...1/3/6/4.geojson" tile has:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              15138441,
              -2875339
            ],
            [
              15136476,
              -2897007
            ],
            [
              15130332,
              -2917901
            ],
            [
              15120229,
              -2937209
            ],
            [
              15106544,
              -2954175
            ],
            [
              15089798,
              -2968127
            ],
            [
              15070638,
              -2978513
            ],
            [
              15049811,
              -2984915
            ],
            [
              15028131,
              -2987079
            ],
            [
              15006452,
              -2984915
            ],
            [
              14985624,
              -2978513
            ],
            [
              14966464,
              -2968127
            ],
            [
              14949718,
              -2954175
            ],
            [
              14936033,
              -2937209
            ],
            [
              14925930,
              -2917901
            ],
            [
              14919786,
              -2897007
            ],
            [
              14917822,
              -2875339
            ],
            [
              14920095,
              -2853733
            ],
            [
              14926500,
              -2833014
            ],
            [
              14936778,
              -2813967
            ],
            [
              14950525,
              -2797310
            ],
            [
              14967209,
              -2783666
            ],
            [
              14986194,
              -2773542
            ],
            [
              15006760,
              -2767314
            ],
            [
              15028131,
              -2765212
            ],
            [
              15049502,
              -2767314
            ],
            [
              15070068,
              -2773542
            ],
            [
              15089053,
              -2783666
            ],
            [
              15105738,
              -2797310
            ],
            [
              15119484,
              -2813967
            ],
            [
              15129762,
              -2833014
            ],
            [
              15136168,
              -2853733
            ],
            [
              15138441,
              -2875339
            ]
          ]
        ]
      },
      "properties": {
        "cartodb_id": 435
      }
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              15138441,
              -2875339
            ],
            [
              15136476,
              -2897007
            ],
            [
              15130332,
              -2917901
            ],
            [
              15120229,
              -2937209
            ],
            [
              15106544,
              -2954175
            ],
            [
              15089798,
              -2968127
            ],
            [
              15070638,
              -2978513
            ],
            [
              15049811,
              -2984915
            ],
            [
              15028131,
              -2987079
            ],
            [
              15006452,
              -2984915
            ],
            [
              14985624,
              -2978513
            ],
            [
              14966464,
              -2968127
            ],
            [
              14949718,
              -2954175
            ],
            [
              14936033,
              -2937209
            ],
            [
              14925930,
              -2917901
            ],
            [
              14919786,
              -2897007
            ],
            [
              14917822,
              -2875339
            ],
            [
              14920095,
              -2853733
            ],
            [
              14926500,
              -2833014
            ],
            [
              14936778,
              -2813967
            ],
            [
              14950525,
              -2797310
            ],
            [
              14967209,
              -2783666
            ],
            [
              14986194,
              -2773542
            ],
            [
              15006760,
              -2767314
            ],
            [
              15028131,
              -2765212
            ],
            [
              15049502,
              -2767314
            ],
            [
              15070068,
              -2773542
            ],
            [
              15089053,
              -2783666
            ],
            [
              15105738,
              -2797310
            ],
            [
              15119484,
              -2813967
            ],
            [
              15129762,
              -2833014
            ],
            [
              15136168,
              -2853733
            ],
            [
              15138441,
              -2875339
            ]
          ]
        ]
      },
      "properties": {
        "cartodb_id": 531
      }
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              15307025,
              -4150587
            ],
            [
              15310182,
              -4126859
            ],
            [
              15317858,
              -4104246
            ],
            [
              15329734,
              -4083597
            ],
            [
              15341217,
              -4070416
            ],
            [
              15341217,
              -4239714
            ],
            [
              15325259,
              -4219384
            ],
            [
              15314682,
              -4197763
            ],
            [
              15308534,
              -4174529
            ],
            [
              15307025,
              -4150587
            ]
          ]
        ]
      },
      "properties": {
        "cartodb_id": 1174
      }
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              15307025,
              -4150587
            ],
            [
              15310182,
              -4126859
            ],
            [
              15317858,
              -4104246
            ],
            [
              15329734,
              -4083597
            ],
            [
              15341217,
              -4070416
            ],
            [
              15341217,
              -4239714
            ],
            [
              15325259,
              -4219384
            ],
            [
              15314682,
              -4197763
            ],
            [
              15308534,
              -4174529
            ],
            [
              15307025,
              -4150587
            ]
          ]
        ]
      },
      "properties": {
        "cartodb_id": 1177
      }
    }
  ]
}

@fdansv could you please investigate this?

cc: @javisantana