w*s 发帖数: 7227 | 1 【 以下文字转载自 Programming 讨论区 】
发信人: wds (网虫都是loser), 信区: Programming
标 题: how to construct iframe for several places in google map ?
发信站: BBS 未名空间站 (Fri Aug 2 22:53:00 2013, 美东)
say i want to combine several stores near me into iframe, to embed in my
webpage.
now i have the 1st place 41.698167,-70.15168,
2nd: 41.675861,-70.091255
3rd: 41.665218,-70.201462
how to combine them together in the format like
="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&
amp;hl=en&geocode=&q=shaws+near+Dennis+Port,+Dennis,+MA&sll=41.
656112,-70.134315&sspn=0.101964,0.264187&ie=UTF8&hq=shaws&
hnear=Dennis+Port,+Dennis,+Barnstable,+Massachusetts&t=m&fll=41.
655728,-70.356789&fspn=0.101964,0.264187&st=103338374097488094454&
amp;rq=1&ev=zi&split=1&ll=41.613359,-70.293343&spn=0.101964,
0.264187&output=embed"> https://maps.
google.com/maps?f=q&source=embed&hl=en&geocode=&q=shaws+near
+Dennis+Port,+Dennis,+MA&sll=41.656112,-70.134315&sspn=0.101964,0.
264187&ie=UTF8&hq=shaws&hnear=Dennis+Port,+Dennis,+Barnstable,+
Massachusetts&t=m&fll=41.655728,-70.356789&fspn=0.101964,0.
264187&st=103338374097488094454&rq=1&ev=zi&split=1&ll=41
.613359,-70.293343&spn=0.101964,0.264187" style="color:#0000FF;text-
align:left">View Larger Map | g****z 发帖数: 1135 | | w*s 发帖数: 7227 | 3 you can search "Stop and Shop + Boston, MA" in google map,
then in the left side, it gives you the iframe code,
if you embedded it into you webpage,
it displays Stop and Shop stores near Boston.
now how do i search "Stop and Shop" and "Shaw's" in Boston, and display them
together in 1 map ?
【在 g****z 的大作中提到】 : 问题没看懂。
| g****z 发帖数: 1135 | 4 这个问题在前面的帖子里已经回答过了嘛,我的方法比较老版本,另一朋友的比较新版
本。
怎么你没弄明白?还要写段code给你啊。
them
【在 w*s 的大作中提到】 : you can search "Stop and Shop + Boston, MA" in google map, : then in the left side, it gives you the iframe code, : if you embedded it into you webpage, : it displays Stop and Shop stores near Boston. : now how do i search "Stop and Shop" and "Shaw's" in Boston, and display them : together in 1 map ?
| w*s 发帖数: 7227 | 5 i'm new to all these, i don't understand your answers.
【在 g****z 的大作中提到】 : 这个问题在前面的帖子里已经回答过了嘛,我的方法比较老版本,另一朋友的比较新版 : 本。 : 怎么你没弄明白?还要写段code给你啊。 : : them
| g****z 发帖数: 1135 | 6 这个:
http://www.mitbbs.com/article_t/BuildingWeb/31174353.html
【在 w*s 的大作中提到】 : i'm new to all these, i don't understand your answers.
| w*s 发帖数: 7227 | 7 searched this post before, still don't get it.
i'm just looking for a simple way,
put
1st place 41.698167,-70.15168,
2nd: 41.675861,-70.091255
3rd: 41.665218,-70.201462
into that iframe line,
no js and other stuff, can i ?
【在 g****z 的大作中提到】 : 这个: : http://www.mitbbs.com/article_t/BuildingWeb/31174353.html
| g****z 发帖数: 1135 | 8 我只会用比较繁复的js方法,问问peterdu吧,他提的新方案,就让他写个pseudo code
啥的.
【在 w*s 的大作中提到】 : searched this post before, still don't get it. : i'm just looking for a simple way, : put : 1st place 41.698167,-70.15168, : 2nd: 41.675861,-70.091255 : 3rd: 41.665218,-70.201462 : into that iframe line, : no js and other stuff, can i ?
| p*****u 发帖数: 214 | 9 ggxxzz害我呀,呵呵,简单的教程
www.youtube.com/watch?v=lh-hQitgTg8&feature=youtube_gdata_player
希望对你有帮助
code
【在 g****z 的大作中提到】 : 我只会用比较繁复的js方法,问问peterdu吧,他提的新方案,就让他写个pseudo code : 啥的.
| g****z 发帖数: 1135 | 10 权当是面试题哈。
要是真碰上这类面试官我肯定歇菜。
【在 p*****u 的大作中提到】 : ggxxzz害我呀,呵呵,简单的教程 : www.youtube.com/watch?v=lh-hQitgTg8&feature=youtube_gdata_player : 希望对你有帮助 : : code
| | | w*s 发帖数: 7227 | 11 perfect, looks very cool, thx a lot !
【在 p*****u 的大作中提到】 : ggxxzz害我呀,呵呵,简单的教程 : www.youtube.com/watch?v=lh-hQitgTg8&feature=youtube_gdata_player : 希望对你有帮助 : : code
| p*****u 发帖数: 214 | 12 你是一问,我是一看。
【在 w*s 的大作中提到】 : perfect, looks very cool, thx a lot !
| w*s 发帖数: 7227 | 13 也谢谢你!
code
【在 g****z 的大作中提到】 : 我只会用比较繁复的js方法,问问peterdu吧,他提的新方案,就让他写个pseudo code : 啥的.
| w*s 发帖数: 7227 | 14 汇报一下,看看是不是work ?
http://osmotel.com/food-and-shopping/
就是那个pin能换颜色形状就好了
【在 p*****u 的大作中提到】 : 你是一问,我是一看。
| p*****u 发帖数: 214 | 15 那个应该可以换,以前是自己写code,具体怎么弄你到googlemap上查查吧。
【在 w*s 的大作中提到】 : 汇报一下,看看是不是work ? : http://osmotel.com/food-and-shopping/ : 就是那个pin能换颜色形状就好了
| g****z 发帖数: 1135 | 16 不知你是咋弄的,大约是如此:
var gicon = new google.maps.Icon();
gicon.image = ;
gicon.shadow = ;
然后在create mark的时候给出这个gicon:
var gmarker = new google.maps.Marker(point, gicon);
看起来并不容易,你自己琢磨琢磨。
【在 w*s 的大作中提到】 : 汇报一下,看看是不是work ? : http://osmotel.com/food-and-shopping/ : 就是那个pin能换颜色形状就好了
|
|