You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a GeoJsonLayer object for my visualization project. The features in this layer correspond to cell boundaries in microscope images. This works well for one chart where I display the microscopy image with the cell boundaries on top if it.
Right now I'm working on another view that extracts cell snippets, think a small rectangle around the bounding box of each cell, and rearranges them in different positions.
I'm wondering if there is a way to translate the positions of features in the GeoJsonLayer? I could update the coordinates of all the geometry before I pass it to the GeoJsonLayer, but that seems a bit heavy-handed. It seems like this might be possible by setting the coordinateOrigin, but I didn't see a change when I tested this with the GeoJsonLayer. This approach would also require a new GoeJsonLayer for every single cell — this might be ok, but I would assume is less performant than one layer with all the geometry on it.
Ideally, I would like to be able to transform each feature independently, e.g. transform the x/y positions, but it looks like this feature doesn't exist for the GeoJsonLayer.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I am using a GeoJsonLayer object for my visualization project. The features in this layer correspond to cell boundaries in microscope images. This works well for one chart where I display the microscopy image with the cell boundaries on top if it.
Right now I'm working on another view that extracts cell snippets, think a small rectangle around the bounding box of each cell, and rearranges them in different positions.
I'm wondering if there is a way to translate the positions of features in the GeoJsonLayer? I could update the coordinates of all the geometry before I pass it to the GeoJsonLayer, but that seems a bit heavy-handed. It seems like this might be possible by setting the
coordinateOrigin
, but I didn't see a change when I tested this with the GeoJsonLayer. This approach would also require a new GoeJsonLayer for every single cell — this might be ok, but I would assume is less performant than one layer with all the geometry on it.Ideally, I would like to be able to transform each feature independently, e.g. transform the x/y positions, but it looks like this feature doesn't exist for the GeoJsonLayer.
Thanks for any ideas/suggestions!
Beta Was this translation helpful? Give feedback.
All reactions