FlatMap.provenancewill be removed as it has been replaced byFlatMap.mapMetadata.
- Return all features corresponding to a clustered dataset marker in event messages (#53).
- maplibre: make sure a map doesn't wrap around the anti-meridian when we have a long narrow viewport.
- Send a single click message, with an array of feature properties, when a pointer click is on several paths (#52).
- functional: View details of a feature by clicking on their zoom marker instead of automatically zooming into them.
- Update
maplibre-glto version 5.2.0 FlatMap.mapMetadatahas been added as an alias forFlatMap.provenance.
- Add
hyperlinks.flatmapto a specify a flatmap associated with the clicked-on feature. - Only load a map into a pane if
loadMap()hasn't specified a container. - General code improvements.
- Allow
containeras an option forloadMap(), as the container in which to load the map instead of using a pane.
@abi-software/flatmap-viewer@4.0.0 is the map viewer entirely in Typescript.
Breaking changes are:
- The
MapManagerclass has been renamed toMapViewer. MapViewernow requires two parameters, its server URL and options, of typeMapViewerOptions, with a requiredcontainerfield (the id of the map’s HTML container).MapViewer.loadMap()no longer has acontainerparameter:
async loadMap(identifier: string, callback: FlatMapCallback, options: FlatMapOptions={}): Promise<FlatMap>
A MapViewer can have multiple panes within its container, by setting the panes field in the viewer’s options to the maximum number allowed (default is 1 pane). With more than one pane specified, loadMap() will create panes within the parent container in which to place maps — when the limit is reached the rightmost pane will be reused. Panes have a close button to allow them to be closed.
There are some (minimal) changes to support the ISAN maps, but essentially this release will be map-viewer going forward.