Open eri-blan opened 2 years ago
Ahh… check this out.
Size of the page The MIT DataGrid is limited to pages of up to 100 rows. If you want larger pages, you will need to upgrade to Pro plan or above.
Yes, I might be wrong but what I understood is stated is that the page size is limited to a 100 rows, but that there will be pagination by default in the free version, whereas in the pro version a singular page can exceed 100 rows. I think maybe that if it is possible to paginate the attribute information, it is better than an error that renders the whole application unusable.
I couldn't use the layer you supply due to CORS restrictions. Do you have a local example on the server you emailed me about previously?
Anyway, I did try with another layer and yes, the maximum items per page is 100, but I can see the total and paginate as well:
Isn't this the case for you?
Describe the bug The problem seems to occur when there is more than a 100 attributes in the GetFeatureInfo response. A pageSize is given according to the number of attributes and if it is over a hardcoded value of a 100, an error is thrown and the whole screen becomes white when clicking on a result, or if there is only one result, it happens immediately when clicking on the map.
Below is where the error occurs:
export const useDataGridProps = inProps => { if (inProps.pageSize > MAX_PAGE_SIZE) { throw new Error(
'props.pageSize' cannot exceed 100 in DataGrid.
); }To Reproduce Try the WMS service: https://resource.sgu.se/service/wms/130/berggrund-50-250-tusen?service=WMS&REQUEST=GetCapabilities Using the layer below: SE.GOV.SGU.BERG.GEOLOGISK_ENHET.YTA.50K
(Note that the getmap-link is different from the service link)
This is tested on the release build 3.10.