Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #614 [市区町村地図]地図をカード内に表示する #627

Conversation

aktuehr
Copy link

@aktuehr aktuehr commented Aug 21, 2020

📝 関連issue / Related Issues

⛏ 変更内容 / Details of Changes

  • カードの幅を基に地図の幅と高さを計算するようにしました
  • 地図の中心位置について、 geoCentroid() で取得されていたが、これは「重心」とのことで、geoBounds() から計算して取得するように変更しました
  • svgの要素をwrapしているdivが余分な高さを持っていたため、 font-size: 0 を指定しました

📸 スクリーンショット / Screenshots

MB(375px)

スクリーンショット 2020-08-21 19 04 38

TB(768px)

スクリーンショット 2020-08-21 19 05 24

PC(1440px)

スクリーンショット 2020-08-21 19 05 49

@aktuehr aktuehr requested a review from teppei696 as a code owner August 21, 2020 10:12
@Blue-Tone Blue-Tone merged commit f9b84bd into codeforosaka:feature/municipality_map Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants