早上, 因此,目前在我的项目中,我在我的blazor项目中使用了嵌入式google地图API和JS。地图在页面和功能上。我使用了下面这篇关于堆栈溢出(Launch Google Maps On Blazor)的文章中的技巧 在我的_Hosts文件中使用以下JS,我需要在JS中移除地图的某些特性 <script>center: latlng, };
默认情况下,在地图左上角有两个按钮plan和卫星:这是代码: map = null;function initMap() { var directionsService = new google.maps.DirectionsService;
map= new google.maps.Map(document.getElementById('map