GMaps API + Fusion Tables Stopped Working

人盡茶涼 提交于 2019-12-02 13:58:30

问题


I have an application which uses the Google Maps API and fusion tables which stopped working as of today (the code and Fusion tables databases weren't changed and were working yesterday.) I have checked the error log and didn't see anything.

The page can be found at http://www2.ece.ohio-state.edu/~garryj/PassiveRadar/Passive%20Radar%20Coverage%20Tool.html

I was hoping someone with a better Javascript background and more experienced debugging skills than I could spot the error quickly, although the code is rather long.

All help is greatly appreciated.


回答1:


it seems that google has updated the default.css, the prevoius version sets the height of #map_canvas and #map-canvas, the current only for #map-canvas.

Add this style to your page:

html, body, #map_canvas {
height: 100%;
margin: 0;
padding: 0;

}

and remove the redundant

<link type="text/css" rel="stylesheet" href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css">


来源:https://stackoverflow.com/questions/19306909/gmaps-api-fusion-tables-stopped-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!