如果您想在google的应用程序中加载您的地图,那么您可以使用下面的方法:
使用Google Maps 的 Web 應用程式大多使用 Google Maps V3 JavaScript SDK。 Azure 地圖服務 Web SDK 是適合作為遷移目的地的 Azure 型 SDK。 Azure 地圖服務 Web SDK 可讓您以自己的內容和圖像自訂互動式地圖。 您可以在 Web 或行動應用程式上執行應用程式。 此控制項使用 WebGL,可讓您以高效能轉譯大型資料集...
不过,这些对象都不是Google Maps APIMarker、Polyline、Polygon或GroundOverlay,而只是地图上呈现的单个对象,这一点非常重要。 设置KmlLayer对象的map属性后,这些对象就会显示在地图上。(您可以调用setMap()传递null,以从地图删除这些对象。)KmlLayer对象会通过自动检索地图给定边界的相应地图项来管理这些子元素的呈现形式。
基于@Boris_K的回答,这里有一个更健壮的解决方案,它:
google.maps.Polygon.prototype.Contains = function(point) { var j=0; var oddNodes = false; var x = point.lng(); var y = point.lat(); for (var i=0; i < this.getPath().getLength(); i++) { j++; if (j == this.getPath().getLength()) {j = 0;} if (((this.getPath()...
Shapes— Draw polygons on the map. KML and other data— You can import KML and Excel data into the mapping software. Import into the Google Maps app— You can load your Google My Maps map into the Google Maps app on iOS or Android. Just hit the menu icon and look for the Your Pla...
Google Maps does support overlay for images and basic shapes such as Polyline, Polygon, Circle, etc. In addition, Google Maps also provides a library for drawing managers which can easily be used for user web applications. In Open Street Maps, the same or more functionality can be achieved ...
google.maps.MapTypeId.ROADMAP }; // documentReady $(function () { var mapPosition = new google.maps.LatLng(19.76666, 76.890006); mapDefaults.center = mapPosition; map = new google.maps.Map(document.getElementById("map"), mapDefaults); //write polygon in map loadWithFk(1); loadWithFk...
这只是几个步骤,如果您相信输入总是干净的,那么没有复杂的问题。
Add a single polygon to the map mapView.addPolygon(newPolygon("111",<Location>[newLocation(45.5231233,-122.6733130),newLocation(45.5233225,-122.6732969),newLocation(45.5232398,-122.6733506),newLocation(45.5231233,-122.6733130), ], jointType:FigureJointType.round, strokeWidth:5.0, strokeColor:Colors.red...