Releases: uiwjs/react-baidu-map
Releases · uiwjs/react-baidu-map
v2.5.2
Documentation v2.5.2: https://raw.githack.com/jaywcjlove/idoc/288c3aa/index.html
Comparing Changes: v2.5.1...v2.5.2
npm i @uiw/[email protected]
- 🐞 fix(deps): remove
canvas-layer
pacakge. (#282) e520429 @jaywcjlove
Document [email protected]:
https://raw.githack.com/uiwjs/react-baidu-map/288c3aa/index.html
v2.5.1
Documentation v2.5.1: https://raw.githack.com/jaywcjlove/idoc/0b39c8c/index.html
Comparing Changes: v2.5.0...v2.5.1
npm i @uiw/[email protected]
- 📖 doc(APILoader): Update document. 5357c5e @jaywcjlove
- 💄 chore(deps): update dependency @uiw/react-markdown-preview to v4.1.0 288a648 @jaywcjlove
- 🆎 type(CopyrightControl): fix type error. a8fce5e @jaywcjlove
Document [email protected]:
https://raw.githack.com/uiwjs/react-baidu-map/0b39c8c/index.html
v2.5.0
Documentation v2.5.0: https://raw.githack.com/jaywcjlove/idoc/f28b74e/index.html
Comparing Changes: v2.4.0...v2.5.0
npm i @uiw/[email protected]
- 💄 chore: update workflows config. 7607924 @jaywcjlove
- 📖 doc(Map): Update README.md de7213e @jaywcjlove
- 💄 chore: update workflows config. c30e427 @jaywcjlove
- 💄 chore: update workflows config. f00e0b9 @jaywcjlove
- 📖 doc(Marker): Update document. a730fff @jaywcjlove
- 🆎 type(Map): Rename type Context -> ContextState. cafd67d @jaywcjlove
- 💄 chore(deps): Update workflows config. 8de7de8 @jaywcjlove
- 🐞 fix(deps): update dependency @uiw/react-markdown-preview to v4 (#255) f4607a3 @renovate-bot
- 💄 chore(deps): update dependency prettier to ~2.6.0 (#258) c73c062 @renovate-bot
- 🐞 fix(deps): update dependency @uiw/react-loader to ~4.21.0 (#256) 3081158 @renovate-bot
- 🐞 fix(deps): update react monorepo to v18 (#260) e224790 @renovate-bot
- 🐞 fix(deps): update dependency react-router-dom to ~6.3.0 (#261) 9a2ebd2 @renovate-bot
- 🐞 fix(deps): update dependency @types/react to v18 (#263) 6215f93 @renovate-bot
- 🐞 fix(deps): update dependency @types/react-dom to v18 (#264) 1d8de6f @renovate-bot
- 🐞 fix(deps): update dependency @types/react-test-renderer to v18 (#266) 5b7dd9c @renovate-bot
- 🆎 type(website): fix react 18 type error. 25f21ec @jaywcjlove
- 🌍 website: fix theme issue. 7003403 @jaywcjlove
- 🌍 website: Update warpper style. aad70d3 @jaywcjlove
- 💄 chore: update
renovate.json
ca65ffd @jaywcjlove - 🌍 website(Marker): fix example error. f1c37dd @jaywcjlove
- 🐞 fix(deps): update dependency @babel/runtime to ~7.18.0 (#273) 077979c @renovate-bot
- 🌟 feat: Support React 18. 5898dbf @jaywcjlove
- 💄 chore: update workflows config. 7d923bf @jaywcjlove
Document [email protected]:
https://raw.githack.com/uiwjs/react-baidu-map/f28b74e/index.html
v2.4.0
npm i @uiw/[email protected]
- 🐞 fix(APILoader): Fix the issue BMap.Map does not exist. a56d4ff @jaywcjlove
- 🐞 fix(Control): Fix useControl children usage inconsistency. 059bcda @jaywcjlove
- 🌟 feat(Map): Add Provider component. 4a5fe6b @jaywcjlove
- 🐞 fix(InfoWindow): Fix children & title issue. 8151652 @jaywcjlove
- 📖 doc(Polygon): Fix example error. 0095826 @jaywcjlove
- 📖 doc(Label): fix example error. 2c9c2d0 @jaywcjlove
v2.3.0
npm i @uiw/[email protected]
- 🐞 fix(Control): fix children issue. 26b552e @jaywcjlove
- 🌟 feat(Label): add children props. 248b4a4 @jaywcjlove
- 🌟 feat(Map): add useMapContext hook. 95a799c @jaywcjlove
- 🐞 fix: fix react state update on an unmounted component. bb10d5a @jaywcjlove
import { useState } from 'react';
import { Map, APILoader, useMapContext } from '@uiw/react-baidu-map';
const Marker = () => {
const { map } = useMapContext();
useEffect(() => {
if (map) {
// 创建点标记
const marker1 = new BMap.Marker(new BMap.Point(116.404, 39.925));
const marker2 = new BMap.Marker(new BMap.Point(116.404, 39.915));
// 在地图上添加点标记
map.addOverlay(marker1);
map.addOverlay(marker2);
}
}, [map]);
return null
}
const Demo = () => {
return (
<div style={{ width: '100%', height: '300px' }}>
<APILoader akay="GTrnXa5hwXGwgQnTBG28SHBubErMKm3f">
<Map enableScrollWheelZoom={true} zoom={13} center="北京">
<div>
<Marker />
</div>
</Map>
</APILoader>
</div>
);
}
v2.2.0
npm i @uiw/[email protected]
- 🐞 fix: add externals react-dom in .kktrc.ts cf8bf02 @jaywcjlove
- 📖 doc: Fix example issue. 78fb46d @jaywcjlove
- 🌍 website: update markdown example issue. 725aeaf @jaywcjlove
- 💄 chore(deps): add @uiw/react-baidu-map-api-loader dependency to @uiw/react-baidu-map-map. 0fbb137 @jaywcjlove
- 🐞 fix(InfoWindow): fix BMap is not defined issue. c4b5f6f @jaywcjlove
- 🆎 type(TileLayer): Fix type errors. e7cabc4 @jaywcjlove
- ⛑ test: add test case. 3d58edc @jaywcjlove
- 🌟 feat(InfoWindow): add children props. c637afb @jaywcjlove
- 🌟 feat(InfoWindow): title props support JSX.Element c9b2021 @jaywcjlove
v2.1.2
npm i @uiw/[email protected]
- 🐞 fix: Update files feild in package.json 1d0574e @jaywcjlove
v2.1.1
v2.1.0
npm i @uiw/[email protected]
- 🐞 fix(deps): update dependency @babel/runtime to v7.17.2 (#250) e10bc5c @renovate-bot
- 💄 chore(deps): Update dependencies. c7d5e21 @jaywcjlove
- 💄 chore: update .gitignore e2843aa @jaywcjlove
- 🌟 feat: output bundle files. c772610 @jaywcjlove
- 💄 chore: update workflows config. ca28c18 @jaywcjlove
- 💄 chore: update workflows config. 07d6779 @jaywcjlove
v2.0.8
npm i @uiw/[email protected]
- 💄 chore(deps): Update peerDependencies react >= 16.14.0 c73d2c8 @jaywcjlove
- 💄 chore(deps): update dependency kkt to v7.0.6 af1f422 @jaywcjlove
- 🐞 fix(deps): update dependency @uiw/react-code-preview to v4 (#242) f79d701 @renovate-bot