Comments (3)
你好,这个跟版本没关系。查看高德官网关于 ToolBar 的可配置项,有一个liteStyle
属性,表示简洁模式;官方的 API 默认为 false
,我觉得简洁模式比较好看,在封装时默认设置成了 true
;还有位置的不一致也是因为我修改了position
默认值。
如果你需要高德官网的那个形式,可以重新配置这两个属性,参考示例:https://jsfiddle.net/h4u8mdng/18/
from react-amap.
谢谢啊。原来是这样。
那就建议在 React AMap — 基于 React 的高德地图组件的plugin处提一嗓子。我说怎么回事呢。
另外,position的默认值个人建议还是左上比较好,因为如果是右下的话,那个overview / 鹰眼打开后会和toolbar重合。当然,还是以你的喜好为准。
from react-amap.
尴尬啦,同样问题
from react-amap.
Related Issues (20)
- 不支持electron
- 在使用router 切换时,发生了Uncaught (in promise) TypeError: Cannot read property 'setterMap' of null错误
- events not update in function component lead to the props in events are old
- 路由切换后,DistrictExplorer实例点击事件失效,请问如何处理呢?使用的官方文档加载Amapui的demo HOT 1
- Markers开启聚合,自定义render 的话,点击聚合点展示的列表可以自定义吗?
- 希望支持更多插件
- 语言参数报错 HOT 1
- 在自定义组件的时候无论是函数组件还是类式组件每次组件的状态更新会导致layer.render重复执行导致会有多个图层叠加如何额去避免??
- 使用react-amap 怎么同时使用AMap原生的其它的方法,比如new AMap.Lights,react-amap库里没有提供 HOT 1
- react-amap CircleEditor active 失效 HOT 1
- 为啥CircleEditor 简单封装成一个新的组件。在Circle 下直接不显示了?? active 直接写true也没用。 HOT 1
- Marker的label属性中offset不生效
- map属性lang缺少ts类型 HOT 1
- react-amap根据两端距离实现缩放级别
- Error: Load timeout for modules
- 经纬度不准
- AMap.PlaceSearch搜索不到自定义的点标记 Marker HOT 1
- 在单页应用中,支持不同的页面加载不同的地图key(业务场景)
- typescript support? HOT 2
- 支持行政区域下钻吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-amap.