Google Maps API无法正确加载界面元素 [英] Google Maps API not loading interface elements properly

查看:114
本文介绍了Google Maps API无法正确加载界面元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,我正在 http://damirsepictrip.com/test- mobile-post /



我使用Google地图API创建自定义地图,但街景视图图标未正确显示。这只是一个垂直栏,而它必须是一个人的图标。另外,如果您将图标放在地图上以使用街景视图,您会看到随着您的旋转,部分街景视图图像丢失,并且关闭按钮图标也不显示。任何帮助将不胜感激。

解决方案

删除此项:

  img {
最大宽度:100%!important;
}

from
http://damirsepictrip.com/wp-content/themes/starkers/css/base.css



..或尝试使用与地图内图片不匹配的其他选择器。

  img {
最大宽度:100%!重要;

$ b / *覆盖(重置)地图内图像的设置* /
#location-map img {
max-width:none!important;
}


I have a website that I'm working on at http://damirsepictrip.com/test-mobile-post/

I'm using the Google Maps API to create a custom map but the Street View icon is not being displayed properly. It's just a vertical bar whereas it needs to be an icon of a person.

Additionally, if you place the icon on the map to use Street View, you will see that as you rotate around, there are parts of the Street View image missing and the close button icon is not showing either. Any help would be much appreciated.

解决方案

Remove this:

img {
  max-width: 100% !important;
}

from http://damirsepictrip.com/wp-content/themes/starkers/css/base.css

..or try a different selector that doesn't match the images inside the map.

img {
  max-width: 100% !important;
}

/*override(reset) the setting for images inside the map*/
#location-map img{
  max-width:none !important;
}

这篇关于Google Maps API无法正确加载界面元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆