Overview of rlayers design principles
mainrlayers is a feature-rich library for creating complex maps in React. Its design follows these principles:
- React-centric API: User-facing interactions use standard React patterns (e.g.,
onClick,onPointerEnter,onPointerLeave). - OpenLayers-centric Internals: Internally, the library uses inheritance following OpenLayers classes rather than composition to maintain performance and feature parity.
- Full Feature Exposure: It exposes advanced OpenLayers features, including dynamic reprojections and a wide variety of layer types and formats.
- Performance: It balances simplicity with performance, providing override methods for users who need to approach raw OpenLayers performance levels.
- Minimal Dependencies: Aside from
reactandol, the only dependency islru-cache(~8KB).