看一看。嘗試/實現(xiàn)的方法:左手邊:當(dāng)我在(右側(cè))選擇表格行時,應(yīng)該在LON,LAT的基礎(chǔ)上顯示位置的Google Maps。但無需重新加載頁面。右手邊:有一個表,其中包含來自MySQL DB的LATITUDE和LONGITUDE值。我的方法: <div class="row"> <div class="col-md-6"> <div class="mapouter"> <div class="gmap_canvas"> <iframe width="600" height="500" id="gmap_canvas" src="https://maps.google.com/maps?q=32.7333,74.8667&hl=es;z=14&output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe> </div> </div> </div> <div class="col-md-6" > <table class="table " style="margin-left: 30px;"> <tbody> <?php while($row=mysqli_fetch_array($res)) { $lat =$row['lat']; $lon =$row['lon']; <tr class="bg-success"> <td><?php echo $lat;?></td> <td><?php echo $lon;?></td> </tr > <?php } ?> </tbody> </table> </div>我不確定如何在jquery中完成此操作,不好意思,但我是jquery的初學(xué)者。問題:我完全不確定這種方法是否是最佳實踐。如果可能,怎么可能?誰能幫助我闡明這一點?
如何在不重新加載頁面的情況下使用經(jīng)度和緯度坐標(biāo)動態(tài)更改Google地圖上的位置點
ibeautiful
2021-05-06 10:09:28