SoulLyoko / vue-tianditu

天地图vue组件库
MIT License
88 stars 23 forks source link

mapTypes不生效以及position不生效 #40

Closed Haifeng-work closed 2 years ago

Haifeng-work commented 2 years ago

设置了mapTypes和position都不生效, 这是为啥? controls: [ { name: 'MapType', position: 'bottomright', mapTypes: [ { title: '地图', icon: 'http://api.tianditu.gov.cn/v4.0/image/map/maptype/vector.png', layer: 'TMAP_NORMAL_MAP' }, { title: '卫星混合', icon: 'http://api.tianditu.gov.cn/v4.0/image/map/maptype/satellitepoi.png', layer: 'TMAP_HYBRID_MAP' } ] } ]

SoulLyoko commented 2 years ago

position是因为官方的api没有提供,mapTypes在v2.7.3中已修复。

Haifeng-work commented 2 years ago

官方基类Control, 有方法setPosition(position:enum ControlPosition) 可以对mapType 设置位置, 并且测试有效。

------------------ 原始邮件 ------------------ 发件人: "SoulLyoko/vue-tianditu" @.>; 发送时间: 2022年1月21日(星期五) 上午9:30 @.>; @.**@.>; 主题: Re: [SoulLyoko/vue-tianditu] mapTypes不生效以及position不生效 (Issue #40)

position是因为官方的api没有提供,mapTypes在v2.7.3中已修复。

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

Haifeng-work commented 2 years ago

image 通过基类方法可以设置位置得, 麻烦作者大大更新下 = =!

SoulLyoko commented 2 years ago

image 通过基类方法可以设置位置得, 麻烦作者大大更新下 = =!

v2.7.4新增position属性