【发布时间】:2019-05-01 17:34:00
【问题描述】:
我想在上面创建一个带有标签的标记,然后制作它,以便我可以单击该标记并打开信息框。我有:
<MarkerWithLabel labelAnchor={{x: 0, y: 25}} icon={marker_icons[post.type]} key={post.id} position={{lat: post.location.lat, lng: post.location.lon}}>
<div style={{fontSize: 14}}>{post.prefix + " " + post.name}</div>
</MarkerWithLabel>
目前它看起来像左边,但我想将标签对齐到看起来像右边,我该怎么做?
【问题讨论】:
标签: reactjs google-maps-api-3 google-maps-markers marker react-google-maps