Repository navigation
Upgrade from 3.4.0 if you use GPUGridRenderer with a CSVGrid. In 3.4.0 a large dataset of one file, such as one of 100,000 cells, was never drawn: its build, cut short at the end of each frame's time, started again from nothing on the next.
All new options are opt-in: maps that do not set them behave as in 3.4.0.
New
maxCellsoption ofMultiResolutionDataset: limits what a view can load from a tiled dataset by going to a coarser resolution before anything is downloaded, withgetRequestedDataset()for the resolution the zoom asks for.hoverReachoption ofGridLayerandgetNearestCellFromPosition()ofDataset, for cells drawn bigger than they are: the nearest cell within a distance of the mouse is the one hovered.GPUGridRenderer:backdrops: falsefor no coarser resolution standing in during a movement where a layer's own tiles have not come in.softwareWebGL: falseleaves a browser that draws WebGL on the CPU to the map's 2D drawing, which is far faster there. Itssoftwareproperty says whether it does.stats()says what it has done, without reading its private fields.
blendModeoption ofVennLegend, for a map whose colours do not mix by multiplication, on a dark background for example.exactDotNumberoption ofDotDensityStyle, fordotNumberdots exactly instead of one more.filter,heightClassandtanakaoptions ofLegoStyle.getCategory, for bricks whose colour is a category and whose height is another variable.
Fixes
GPUGridRenderernever drew a large one-file dataset (CSVGrid), since 3.4.0. A built one-file dataset is also no longer built again on each draw.GPUGridRendererput every cell of the tiles that came in during a movement in the last colour class when the map had last stopped where nothing was loaded yet: their view scale had been worked out from no cells.- On a touch screen, after a tap on a cell, its tooltip and rectangle came back at the place of the tap after every pan or zoom with the fingers, and stayed when a panel of the page was scrolled. Only a mouse or a pen now sets where the pointer is, and any touch ends the hover; a tap on a cell still shows its tooltip. Nothing changes with a mouse.
TimeSeriesStyletook a value of the number 0 as no data, which broke the line (the text'0'of a CSV file was not affected).
Examples
- The ships demo has 14 views of its data, and uses
maxCellsandblendMode.