4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

スマートフォンサイトでGoogle Mapsが崩れてたときに疑うところ

Posted at

Google Maps API で描画されるimgタグは、画像サイズをCSSで指定してあるので、Retina対応でこんなCSSを書いてると盛大に崩れる。

img:not([width]) {
  zoom: .5;
}
#map_canvas img {
  zoom: 1;
}

とかしておけば、よさそう。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?