We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<Map enableScrollWheelZoom center={{ lng: 104, lat: 31 }} zoom={10} style={{ height: 800 }}> {/* 地图只展示这个图标 */} <Marker position={{ lng: 104, lat: 31 }} icon={new BMapGL.Icon('/imgs/sprite.png', new BMapGL.Size(40, 40), { imageSize: new BMapGL.Size(1920, 1080), imageOffset: new BMapGL.Size(511, 1036) })} /> {/* 这两个不展示 */} <Marker position={{ lng: 104.1, lat: 31.1 }} icon={new BMapGL.Icon('/imgs/sprite2.png', new BMapGL.Size(40, 40), { imageSize: new BMapGL.Size(1920, 1200), imageOffset: new BMapGL.Size(511, 1036) })} /> <Marker position={{ lng: 104, lat: 31 }} icon={new BMapGL.Icon('/imgs/sprite2.png', new BMapGL.Size(40, 40), { imageSize: new BMapGL.Size(1920, 1200), imageOffset: new BMapGL.Size(511, 1036) })} /> </Map>
把第一个marker注释、后面两个能正常展示
The text was updated successfully, but these errors were encountered:
No branches or pull requests
把第一个marker注释、后面两个能正常展示
The text was updated successfully, but these errors were encountered: