agrc / raster

Raster Discovery App
MIT License
4 stars 0 forks source link

Add new "product" URL Parameter #158

Closed stdavis closed 4 months ago

stdavis commented 4 months ago

From @rkelson

I am sure I asked this before and I understand the Raster app is a touchy subject, but is there anything that could be done so you could format a URL to start the app in Step 2 with one of the Step 1 products already checked such as Lidar DEMs? Cat and CatGroup URLs require specific project names and products, from the 'Category' field in the extents layer, but my idea would be a link that opened the app with Lidar DEMs already checked. Maybe something like ?product=. I am working with Steve on the new website is why I ask. I would basically be a link in the top card on the elevation and terrain page.

image
stdavis commented 4 months ago

@rkelson I've got this implemented and deployed to staging (https://raster.dev.utah.gov) in version 2.4.0-0. Please give it a look and let me know what you think.

I added docs for this feature to the readme. Note that I wasn't sure if you would want to be able to pass multiple products so I made the parameter name products (plural) and allow you to pass multiple comma-separated values.

rkelson commented 4 months ago

this is working perfectly. Thank you for anticipating multiple products and I really like that it uses an index instead of the product name.

stdavis commented 4 months ago

@rkelson This has been pushed to production as part of the v2.4.0 release.

rkelson commented 4 months ago

@stdavis you rock!