javascript - Letting User Draw On a Google Map? -


Does anyone know if a user is allowed to draw a line from point A to point B on Google Maps?

If so, how is this usually done?

You can specify two digits or more using Polyline and Gooogle.maps.LatLng here is one:

]; // Create polyline and give it points with stroke styling warfare flight. Path = new google.maps.Polyline ({Path: coordinate flight plan, stroke color: "# FF 20000", stroke opacity: 1.0, strokeweights: 2}); // Set the polyline on the map's flight path.Seastap (map);

According to the suggestions of others, for more information, Qdnets can be entered either by a click event to place markers in the form of points on the map and then markers To provide horoscope in the form of points, Polyllines or you can also create a form where users manually enter their address or LNG points in their letters to attract points But the detailed method of polyline drawing is similar to the example above except the wave LNG, which is coded steadily. Demo

Comments