当我在Google地图中到达目的地时,如何查看弹出窗口 [英] How Do I View Pop Up When I Have Reached My Destination In Google Maps

查看:77
本文介绍了当我在Google地图中到达目的地时,如何查看弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的MVC应用程序中使用Google地图,当驱动程序到达路径末尾时需要弹出一条消息。弹出窗口必须包含地址和信息。

例如你已经到达维多利亚街58号的目的地。

任何帮助都将不胜感激。

解决方案

我建​​议你使用内置的BOOTSTRAP POPUP组件类: http://getbootstrap.com / components / [ ^ ]



 href =   modal_content_name 
data-toggle = modal



 <   div     class   =  modal fade     id   =  test_modal >  
< div class = modal-header >
< a class = close data-dismiss = modal > & times; < / a >
< h3 > Hello Sir / Madam < / h3 >
< / div >
< div class = modal-body >
< p > 你已经达到了位于维多利亚街58号的目的地。< / p >
< / div >
< div class = < span class =code-keyword> modal-footer >
< a href = = btn data-dismiss = modal > 关闭< / a >
< / div >
< / div





 <   script     type   =  text / javascript >  

(文件)。就绪(函数(){

( '#test_modal')模态( '显示')。
});
< / script >





通过手动关闭模态弹出窗口,您可以使用JavaScript



 <   script     type   =  text / javascript >  


I am using Google maps in my MVC application and need a message to pop up when a driver reaches the end of his route. The pop up must contain the address and the message.
Example "You Have Reached Your Destination at 58 Victoria Street".
Any help will be much appreciated.

解决方案

I recommend you to use inbuilt classes of BOOTSTRAP POPUP COMPONENTS: http://getbootstrap.com/components/[^]

href="modal_content_name"
    data-toggle="modal"


<div class="modal fade" id="test_modal">
  <div class="modal-header">
    <a class="close" data-dismiss="modal">&times;</a>
    <h3>Hello Sir/Madam</h3>
  </div>
  <div class="modal-body">
    <p>"You Have Reached Your Destination at 58 Victoria Street".</p>
  </div>
  <div class="modal-footer">
    <a href="#" class="btn" data-dismiss="modal">Close</a>
      </div>
</div



<script type="text/javascript">


(document).ready(function(){


('#test_modal').modal('show'); }); </script>



By closing the modal popup manually you can use JavaScript

<script type="text/javascript">


这篇关于当我在Google地图中到达目的地时,如何查看弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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