Veo que podemos dibujar polilíneas y círculos en la parte superior del mapa de Google con esta API https://developers.google.com/maps/documentation/javascript/shapes ¿Hay alguna forma de dibujar una línea curva en la parte superior de un mapa de Google?
Sí, puedes dibujar siguiendo el código js,
function initMap() { const map = new google.maps.Map(document.getElementById("map"), { zoom: 3, center: { lat: 0, lng: -180 }, mapTypeId: "terrain", }); const flightPlanCoordinates = [ { lat: 37.772, lng: -122.214 }, { lat: 21.291, lng: -157.821 }, { lat: -18.142, lng: 178.431 }, { lat: -27.467, lng: 153.027 }, ]; const flightPath = new google.maps.Polyline({ path: flightPlanCoordinates, geodesic: true, strokeColor: "#FF0000", strokeOpacity: 1.0, strokeWeight: 2, }); flightPath.setMap(map); } window.initMap = initMap;
puedes seguir este ejemplo:
[https://jsfiddle.net/gh/get/library/pure/googlemaps/js-samples/tree/master/dist/samples/polyline-simple/jsfiddle][1]