0

我有德克萨斯州县的 KML 文件。如何在 Visual Studio 的 Google API JavaScript 中使用它,以便在运行代码时标记县?

到目前为止,我有:

function initMap() {
    var options = {
        zoom: 6,
        center: { lat: 31.5086, lng: -98.2117 },//need to adjust, localize to Texas' center
        restriction: {
            latLngBounds: {
                north: 37.4985,
                south: 24.8474,
                east: -91.5351,
                west: -108.6444,
            }
        }//end restriction
    }
    var map = new google.maps.Map(document.getElementById('map'), options);
}
4

0 回答 0