Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix(wechat): 修复 Map 组件 polygons 属性不生效的问题 (#1038)
Browse files Browse the repository at this point in the history
fix #1035
  • Loading branch information
Darmody authored Jun 5, 2020
1 parent 7fade58 commit 48487b2
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ latitude="{{_h.v(i.props['latitude'])}}"
layer-style="{{_h.v(i.props['layer-style'])}}"
longitude="{{_h.v(i.props['longitude'])}}"
markers="{{_h.v(i.props['markers'])}}"
polygon="{{_h.v(i.props['polygon'])}}"
polygons="{{_h.v(i.props['polygons'])}}"
polyline="{{_h.v(i.props['polyline'])}}"
rotate="{{_h.v(i.props['rotate'])}}"
scale="{{_h.v(i.props['scale'])}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ latitude="{{_h.v(i.props['latitude'])}}"
layer-style="{{_h.v(i.props['layer-style'])}}"
longitude="{{_h.v(i.props['longitude'])}}"
markers="{{_h.v(i.props['markers'])}}"
polygon="{{_h.v(i.props['polygon'])}}"
polygons="{{_h.v(i.props['polygons'])}}"
polyline="{{_h.v(i.props['polyline'])}}"
rotate="{{_h.v(i.props['rotate'])}}"
scale="{{_h.v(i.props['scale'])}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ latitude="{{_h.v(i.props['latitude'])}}"
layer-style="{{_h.v(i.props['layer-style'])}}"
longitude="{{_h.v(i.props['longitude'])}}"
markers="{{_h.v(i.props['markers'])}}"
polygon="{{_h.v(i.props['polygon'])}}"
polygons="{{_h.v(i.props['polygons'])}}"
polyline="{{_h.v(i.props['polyline'])}}"
rotate="{{_h.v(i.props['rotate'])}}"
scale="{{_h.v(i.props['scale'])}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ latitude="{{_h.v(i.props['latitude'])}}"
layer-style="{{_h.v(i.props['layer-style'])}}"
longitude="{{_h.v(i.props['longitude'])}}"
markers="{{_h.v(i.props['markers'])}}"
polygon="{{_h.v(i.props['polygon'])}}"
polygons="{{_h.v(i.props['polygons'])}}"
polyline="{{_h.v(i.props['polyline'])}}"
rotate="{{_h.v(i.props['rotate'])}}"
scale="{{_h.v(i.props['scale'])}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ latitude="{{_h.v(i.props['latitude'])}}"
layer-style="{{_h.v(i.props['layer-style'])}}"
longitude="{{_h.v(i.props['longitude'])}}"
markers="{{_h.v(i.props['markers'])}}"
polygon="{{_h.v(i.props['polygon'])}}"
polygons="{{_h.v(i.props['polygons'])}}"
polyline="{{_h.v(i.props['polyline'])}}"
rotate="{{_h.v(i.props['rotate'])}}"
scale="{{_h.v(i.props['scale'])}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`Map render correctly 1`] = `
longitude={0}
rotate={0}
scale={16}
setting={Object {}}
showCompass={false}
showLocation={false}
showScale={false}
Expand Down
3 changes: 3 additions & 0 deletions packages/remax-wechat/src/hostComponents/Map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export interface MapProps extends BaseProps {
enableSatellite?: boolean;
/** (default: false) 是否开启实时路况 2.7.0 */
enableTraffic?: boolean;
/** 配置项 2.8.2 */
setting?: any;
/** 点击标记点时触发,e.detail = {markerId} 1.0.0 */
onMarkerClick?: (event: any) => any;
/** 点击控件时触发,e.detail = {controlId} 1.0.0 */
Expand Down Expand Up @@ -81,4 +83,5 @@ Map.defaultProps = {
enableRotate: false,
enableSatellite: false,
enableTraffic: false,
setting: {},
};
2 changes: 1 addition & 1 deletion packages/remax-wechat/src/hostComponents/Map/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const alias = {
polyline: 'polyline',
circles: 'circles',
controls: 'controls',
polygon: 'polygon',
polygons: 'polygons',
showLocation: 'show-location',
includePoints: 'include-points',
includePadding: 'include-padding',
Expand Down

1 comment on commit 48487b2

@vercel
Copy link

@vercel vercel bot commented on 48487b2 Jun 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.