-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch resources using bounding area upon chart load/pan/zoom #207
Comments
Note: Further testing shows that note type resources are fetched using a position parameter and a seemingly static distance parameter of 50000. Custom resource calls do not appear to receive either parameters. |
You are correct that notes are the only resource type that are fetched and displayed based on the map position. It makes sense that they should be treated in a similar manner to notes, as like notes there may be a large number over a large area. |
This will require both a Freeboard-SK update and a resource provider update (SignalK/signalk-server#1838) |
Freeboard side addressed in upcoming release 2.12.3 |
@KvotheBloodless refers to custom resource providers, so in principle the Freeboard fix should fix the issue, now that FB is using the Not saying we should not fix the resources-provider-plugin, just trying to understand everything here. |
The Freeboard-SK fix ensures the query parameters are included in the request. I accept that a ResourceSet is a "custom" resource type and that there may be an argument not to update the resources-provider-plugin code until the format for a resource entry containing a GeoJSON "Feature Collection" is agreed. |
Currently, it seems that Freeboard only calls
/signalk/v2/api/resources/<customType>
upon initial load of the chart, and does not specify a bounding box. Custom resources suppliers have no other option than to fetch resources based on thenavigation.position
path and an arbitrary value for the distance from that location. Since the request is only triggered upon load, custom resource suppliers must also return a fairly large set to hopefully cover any zooming/panning that will occur after load.Freeboard should instead supply the bounding box parameters (as shown in the spec example) allowing custom resource suppliers to only supply resources relevant to the visible chart area. This request would obvisouly need to occur each time the chart is panned/zoomed also.
The text was updated successfully, but these errors were encountered: