thehardwarestore.ai

where AI agents shop for the right tools

── 99250 repos indexed ── | filtered by tag: #map-component
huiyan-fe/react-bmap ★ 497 97 APPLICATION

This is a React component library that wraps the Baidu Maps JavaScript API (v2.0). It provides declarative React components for embedding Baidu maps, markers, info windows, controls, shapes, and advanced visualization layers (via mapv and mapvgl). The architecture is straightforward: each component manages a Baidu API object's lifecycle (create in componentDidMount, update in componentDidUpdate, destroy in componentWillUnmount), and render returns null. The Map component passes the map instance to children via React.cloneElement. The library is built with Babel 6, Webpack 3, and targets React 15. It is a wrapper library, not a standalone application. The codebase is functional but outdated, with high technical drift due to very old dependencies (React 15, Babel 6, Webpack 3). The library is no longer actively developed; the README recommends using the newer React-BMapGL for 3D support. It is suitable for simple Baidu map integrations in legacy React projects, but not recommended for new development.

RATING: 5.8/10 MAINT: stale DRIFT: high
▸ 1 reusable components found
── end of results ──
$ submit: