Questions tagged [google-polyline]

Google Polyline class in Google Map v3

A polyline is a list of points, where line segments are drawn between consecutive points.

481 questions
-2
votes
1 answer

Javascript - Google Map multiple polylines of different colors

I am currently plotting multiple lines on a map as part of a project. I have been able to plot multiple polylines on a Google Map with the help of a few tutorials. But, all the polylines are of the same color and I want to them to be in different…
Akhil Kintali
  • 496
  • 2
  • 11
  • 27
-2
votes
1 answer

How to add point on polyline somewhere between two vertexes?

The goal is to have an editable polyline with customized markers at every vertex. As I see Map API V3 does not allows that. So I made editable polyline like this: let polyline = new self.google.maps.Polyline({ strokeColor: '#000000', …
Alexey
  • 1
  • 1
-2
votes
1 answer

Google Maps - Displaying traffic for polyline

Is it possible to display traffic only for polyline drawn, instead of adding traffic layer which displays on top of my polyline?
Esteban Rincon
  • 2,040
  • 3
  • 27
  • 44
-2
votes
1 answer

How to get the list of coordinates (Lat, Long) of a poly-line drawn between drawn between two markers

Actually i need a list of coordinates on which the line is drawn mention in the picture in details
-2
votes
1 answer

Changing marker icon

I have the following JavaScript code: var map; var locations = [ ['Mankato, MN', 44.1834814, -93.9774519, 1], ['Duluth, MN', 46.7649885, -92.1112232, 2], ['Rochester, MN', 43.9959876, -92.4811724, 3], ['Fargo, ND', 46.8541979,…
-2
votes
2 answers

Trying to create a 'lozenge' with google maps API

I am current using google maps API to plot points on a map. I am looking for the best way to achieve a 'lozenge' type effect between points (see image). Essentially the thickness of the lozenge will be determined dynamically. The only way I can see…
jonahpup
  • 103
  • 12
-2
votes
1 answer

Draw Polyline between markers Ionic Google Maps JavaScript

Hi guys this is my first post in this site, im working in a App in Ionic that shows your position with a marker when you push a button, you can push it again to update your position and add a Marker on that position, i want to draw a Polyline…
-2
votes
1 answer

SetMap(null) not working with markers in google maps v3

I'm creating a web app where on page load multiple polylines are drawn from one point to many. Their corresponding markers are also drawn. On change in dropdown list the polylines & markers should dissapear. Current code output.. On changing the…
Lucy
  • 1,812
  • 15
  • 55
  • 93
-2
votes
1 answer

how to use polyline in google maps in android?

public class map2 extends AppCompatActivity implements OnMapReadyCallback, GoogleMap.OnMyLocationChangeListener { private static final String TAG =null ; private GoogleMap mGoogleMap; private Geocoder mGeocoder; String…
joe
  • 7
  • 5
-2
votes
3 answers

Drawing routes between markers using Google map API

I want to draw a routes between every two points in map using Google map API.
-2
votes
1 answer

How to add polylines with an array of position?

I have a simple array containing name of cities. I'm trying to loop through this array and add markers linked by Polylines on the Google Map. Here is my code: function addMarkerCity(cities) { $.each(cities, function(index, value) { …
Nizar B.
  • 3,098
  • 9
  • 38
  • 56
-2
votes
1 answer

Google map path doesn't cross International Dateline using epoly.js

I'm making a marker move from point A to point B by using the .GetPointDistance from epoly.js in a loop. It works fine as long as the shortest distance does not cross the Intl Dateline. If it does, like going from San Francisco, to Tokyo, it…
-2
votes
1 answer

Google map route direction show by arrows in android v2

I am trying to implement google map markers in android google v2. i can show markers in the map too using json parsing, but the problem im facing is: 1: the parsing just tells u-turn but it doesn't tell left u-turn or right so even if im am using…
Ari
  • 1,296
  • 1
  • 18
  • 36
-3
votes
1 answer

How to add Multiple Polylines using Google Map JS Api while using addListeners

I am trying to add multiple polylines to the following sample and if i do so it is drawing the latest polyline and removing the old one. I know it can be done while loading the map. I have to use the following logic as it is perfectly drawing the…
Abhi
  • 11
  • 1
  • 5
-3
votes
1 answer

get google maps data with retrofit 2

I try to get the distance between two points by showing them together with a polyline. One marker is permanently somewhere and the other the user chooses the place they want when clicking on the map. I tried with many codes obtained from the…
juan
  • 43
  • 8
1 2 3
31
32