Merge pull request #184 from antvis/map_plugin

Map plugin
This commit is contained in:
@thinkinggis 2020-02-03 20:13:47 +08:00 committed by GitHub
commit 2106a3390c
5 changed files with 11 additions and 10 deletions

View File

@ -67,9 +67,9 @@ layer: 图层对象
overlayers 示例
```javascript
{
"图层一"layer1,
"图层二"layer2,
const layer = {
图层一: layer1,
图层二: layer2,
}
```

View File

@ -39,9 +39,9 @@ const popup = new L7.Popup(option);
经纬度对象
```javascript
{
lng: 112,
lat: 30
const lnglat = {
lng: 112.323,
lat: 30.456,
}
```

View File

@ -39,9 +39,9 @@ const popup = new L7.Popup(option);
经纬度对象
```javascript
{
lng: 112,
lat: 30
const lnglat = {
lng: 112.323,
lat: 30.456,
}
```

View File

@ -270,7 +270,7 @@ export default class AMapService
}
amapLoaded = true;
this.loadAMapScript(
`https://webapi.amap.com/maps?v=${AMAP_VERSION}&key=${token}&plugin=Map3D${plugin.join(
`https://webapi.amap.com/maps?v=${AMAP_VERSION}&key=${token}&plugin=Map3D,${plugin.join(
',',
)}`,
).then(() => {

View File

@ -19,6 +19,7 @@ export default class AnimatePoint extends React.Component {
style: 'dark',
center: [112, 23.69],
zoom: 2.5,
plugin: ['AMap.ToolBar'],
}),
});