Our journey needed to make a temporary detour, with another release of mapguide-react-layout.
This release has the following notable changes
Legend layer and group customization support
This release provides a new viewer init option to allow layer and group elements of the Legend component to be augmented with additional HTML content. For example, we can use this to add a download link for specific layers (how to actually implement the download link is an exercise left to you the reader)
See this comment for an example of how to customize the layer and group elements.
Reduced excessive re-rendering
In the process of implementing the above feature, we discovered that some components (the Legend component in particular) did a lot of pointless re-rendering which contributes to sluggishness in viewer performance.
For this release, great efforts were made to ensure that component re-rendering is the result of legitimate changes to component state and not from pointless re-rendering from bogus shallow state "changes"
Removed IE-specific polyfills and workarounds
Internet Explorer ceased to be a supported browser by Microsoft for some time now. This release formally removes our various IE-specific workarounds and polyfills that were only there to support this ancient browser.
Other changes
- The urlPropsIgnore setting is now considered when the viewer updates the URL state
- The viewer bundle patches OpenLayers to log a console warning and abort rendering when attempting to render a map overlay image with a width/height/scale/dpi of 0
- Fixed an issue where no map images are rendered if the browser zoom is below 100%