Skip to content
Snippets Groups Projects

geo intergation

Merged Leonardo Christino requested to merge feat/get_intergation into main
3 files
+ 52
31
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -73,7 +73,7 @@ export class NodeLayer extends CompositeLayer<LayerProps> {
}
renderLayers() {
const { graph, config, visible } = this.props;
const { graph, config, visible, getNodeLocation } = this.props;
return new ScatterplotLayer({
hidden: visible,
@@ -85,7 +85,7 @@ export class NodeLayer extends CompositeLayer<LayerProps> {
radiusMinPixels: 7,
radiusMaxPixels: 100,
lineWidthMinPixels: 1,
getPosition: (d: any) => [d.attributes.long, d.attributes.lat],
getPosition: (d: any) => getNodeLocation(d.id),
getFillColor: (d: any) => this.getColor(d, config.fillColor),
getRadius: (d: any) => 5,
});
Loading