TablePlus icon indicating copy to clipboard operation
TablePlus copied to clipboard

Feature Request: Hover Render for GeoJson

Open al-hicks opened this issue 2 years ago • 4 comments

Please answer the questions below, it helps us to keep track of the issue. Please do not ignore it or your issue will be closed.

  1. Which driver are you using and version of it (Ex: PostgreSQL 10.0): PostgreSQL, where is driver version available?

  2. Which TablePlus build number are you using (the number on the welcome screen, Ex: build 81): Version 5.4.0 (504)

  3. The steps to reproduce this issue: Not a bug

Can the current hover feature for Postgres GIS types be extended to support GeoJSON rendering - (see geojson.io)

image

Example:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          [
            -3.329843811033953,
            51.484129893062004
          ],
          [
            -3.2549994506825612,
            51.49994818983717
          ],
          [
            -3.2261603393540668,
            51.52644222169036
          ],
          [
            -3.2055609741198907,
            51.550359071965715
          ]
        ],
        "type": "LineString"
      }
    }
  ]
}

image

al-hicks avatar Aug 31 '23 16:08 al-hicks

Hi @al-hicks please update the issue template questions. Thanks.

huyphams avatar Aug 31 '23 16:08 huyphams

Hello! Just want to chime in that my team would appreciate similar functionality to what's described. Specifically, we'd appreciate a base map layer underneath geometry previews.

Thanks!

rowbot-weisguy avatar Jul 05 '24 23:07 rowbot-weisguy

Did you try to press command + return or using the Quick Look @rowbot-weisguy ?

huyphams avatar Jul 06 '24 00:07 huyphams

@huyphams that works really well, thanks! Is there a way to visualize multiple geometries at once on the map? When I highlight multiple geometries then press command + return it only returns the last geometry in the column. Screenshot 2024-07-05 at 20 49 12

Though, the hacky way to do this would be to perform ST_Collect(geom) on these geometries, which is also fine!

kevinlacaille avatar Jul 06 '24 03:07 kevinlacaille