0

I have a number of fusion tables, each of which can be viewed in the form of maps. There iframe representation is along the following lines:

<iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://www.google.com/fusiontables/embedviz?viz=MAP&amp;q=select+col0+from+1w5Ksc0GqzFKgf91tyauCbnhymszbsNlQay8scLs&amp;h=false&amp;lat=58.3&amp;lng=19.1&amp;z=11&amp;t=1&amp;l=col0"></iframe>

How I use javascript to replace the src so as to switch between maps?

How can I use a search box so as to center the map based on a user inputted address?

4

1 回答 1

0

如果 iframe 有一个 ID,您只需获取新的 src 并替换它...

$('#iframeIDwhateveritis').attr('src', 'newhttpSrchere');

您必须在使用的任何地图上查找文档的搜索框...

于 2012-08-01T14:58:38.583 回答