marineenergy / apps

shiny apps for MHK-env
https://marineenergy.github.io/apps/
MIT License
3 stars 1 forks source link

changing Location in sidebar does not stick and could be sped up by pausing Spatial intersections #121

Open bbest opened 2 years ago

bbest commented 2 years ago

Grace:

Also, I found a bug, which we should fix after we get AOP funds (after July). The app won’t let me modify the location after one is initially chosen. I can modify tags and re-filter each of the content types, but once the location is chosen, it seems to be set until you refresh the page.

image

It's also very slow for the initial Location to save.

Looking at the logs and seeing spatial intersections being run :monocle_face:. Perhaps these should be initiated by a button on the Spatial tab?

output$mapeditor - beg
output$mapeditor - end
get_spatial_intersection(dataset_code='cetacean-bia', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='cbrs', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='drill-platforms', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='nationwide-efha', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='efh', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='fed-ocs-lease', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='cetacean-pacific-summer', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='hapc', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='fish-species', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='mpa', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='nat-park-bdry', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='gloria', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='seabed-sed', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='sma', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='wave-potential', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='oil-gas-wells', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='ocs-lease-blk', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='oil-gas-lease', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='ocs-programs', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='pipelines', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='shipping-lanes', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='uscg-districts', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')
get_spatial_intersection(dataset_code='land-boundary', aoi_wkt='POLYGON ((-129.7208 38.52269, -129.7208 45.50831, -123.8675 45.50831, -123.8675 38.52269, -129.7208 38.52269))')