-1
我一样有一个justdial.com应用程序,其中每当地址输入到地址输入到数据库,从那里同一地址用于创建谷歌地图的形式。动态地添加谷歌地图在我的应用程序
整个代码是在转发标签即每一个新的地址输入谷歌地图API的时间获取它,并显示在我的应用程序映射写入。
正如justdial.com完成。
该项目使用n层C#.NET框架完成。
<asp:Repeater ID="Repeater1" OnItemDataBound="Repeater1_ItemDataBound" runat="server" onitemcommand="Repeater1_ItemCommand">
<ItemTemplate>
<h2>Map</h2>
<div style="width:100%; min-height:250px;">
<iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=<%#Eval("comp_adrs") %>+India&aq=0&oq=<%#Eval("comp_adrs") %>&sll=23.192951,72.6299&sspn=0.024023,0.042014&ie=UTF8&hq=&hnear=<%#Eval("comp_adrs") %>,+Odisha,+India&t=m&z=14&ll=20.344743,85.803818&output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=<%#Eval("comp_adrs") %>,+Odisha,+India&aq=0&oq=<%#Eval("comp_adrs") %>&sll=23.192951,72.6299&sspn=0.024023,0.042014&ie=UTF8&hq=&hnear=<%#Eval("comp_adrs") %>,+Odisha,+India&t=m&z=14&ll=20.344743,85.803818" style="color:#0000FF;text-align:left">View Larger Map</a></small>
</div>
</ItemTemplate>
</asp:Repeater>