2.9.8 • Published 2 years ago
react-fengmap v2.9.8
react-fengmap
Install
npm install --save react-fengmap
完整 API 使用文档,请这边走
Usage
// 基础地图
import React, { Component } from 'react'
import fengmapSDK from 'fengmap'
import { FengmapBase } from 'react-fengmap'
class Example extends Component {
render() {
return (
<FengmapBase
fengmapSDK={fengmapSDK}
mapId="10347"
mapOptions={{
key: '你的key',
//开发者申请应用名称
appName: '你的应用',
defaultMapScaleLevel: 20,
defaultTiltAngle: 45
}}
style={{
width: '800px',
height: '550px'
}}
/>
)
}
}
// 带楼层控制的地图
import React, { Component } from 'react'
import fengmapSDK from 'fengmap'
import { FengmapFloors } from 'react-fengmap'
class Example extends Component {
render() {
const { selectedFloor } = this.props
return (
<FengmapFloors
fengmapSDK={fengmapSDK}
mapId="10347"
mapOptions={{
key: '你的key',
//开发者申请应用名称
appName: '你的应用',
defaultMapScaleLevel: 20,
defaultTiltAngle: 45
}}
value={selectedFloor}
style={{
width: '800px',
height: '550px'
}}
/>
)
}
}
LICENSE
2.9.8
2 years ago
2.9.7
2 years ago
2.9.6
6 years ago
2.9.5
6 years ago
2.9.4
6 years ago
2.9.3
6 years ago
2.9.2
6 years ago
2.9.1
6 years ago
2.9.0
6 years ago
2.8.0
6 years ago
2.7.9
6 years ago
2.7.8
6 years ago
2.7.7
6 years ago
2.7.6
6 years ago
2.7.5
6 years ago
2.7.4
6 years ago
2.7.3
6 years ago
2.7.2
6 years ago
2.7.1
6 years ago
2.7.0
6 years ago
2.6.2
6 years ago
2.6.1
6 years ago
2.6.0
6 years ago
2.5.0
6 years ago
2.4.2
6 years ago
2.4.1
6 years ago
2.4.0
6 years ago
2.3.1
6 years ago
2.3.0
6 years ago
2.2.3
6 years ago
2.2.2
6 years ago
2.2.1
6 years ago
2.2.0
6 years ago
2.1.0
6 years ago
2.0.0
6 years ago
1.3.8
6 years ago
1.3.7
6 years ago
1.3.6
6 years ago
1.3.5
6 years ago
1.3.4
6 years ago
1.3.3
6 years ago
1.3.2
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.0
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago