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
-1
votes
1 answer

How to divide array of route coordinates, to equal distance parts?

I’m working with Google Maps API on iOS app. I have a route between point A, and point B, This route is encoded to String, which I’ve decoded to array of coordinates, from which, in fact, route is created. And now the problem occurs: I need divide…
broccoli
  • 13
  • 1
-1
votes
1 answer

Decrease polyline in google map when the marker moves towards destination(Android)

Please provide some idea, I am trying to decrease the polyline in google map as the marker moves towards the destination. I am hitting the google api for getting the poly line list frequently and redrawing the root. I am searching for any best…
-1
votes
1 answer

Is there a way to dynamically shrink the length of a google map polyline?

Looking at this example from https://codepen.io/anon/pen/WzdOqz Is there a way so that I can control the maximum length of the red line (path)? For example I would only like to keep 20 points of the red line shown everytime (meaning while the marker…
Jeffrey M Castro
  • 367
  • 3
  • 12
-1
votes
1 answer

Is there a way to remove the line under a symbol in Google map polyline?

This link shows how to animate google map symbols: https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-animate Is there a way to remove the black line under the animated circle (but still show the green…
Jeffrey M Castro
  • 367
  • 3
  • 12
-1
votes
1 answer

How to draw poly-line with multiple marker and multiple poly-line?

I want to draw polyline from one marker to multiple marker and also bind to their marker. Similar to this example. In this example, all polyline are connected to each other. I want to all polyline to be separated. I have set of arrays of latitude…
-1
votes
1 answer

How to remove the extra polyline from google maps api android

I have added a waypoint and drawn the polyline from start to destination through the waypoint. But an extra straight line is drawn from start to destination. How can I remove it ? The code below shows the ParserTask and getDirections URL. private…
-1
votes
1 answer

Google Maps Directions API returns waypoints that don't make any sense, walk on water etc

I need to implement a sort of navigation feature in my app. I started diving into the Google Maps Directions API, where I expect to enter a point of origin and point of destination, and then get an optimized list of latlngs to use as a polyline.…
-1
votes
1 answer

How to find Google Polyline has Curve or it is a Straight line?

I have a list of some geo points, Now I want to check does these geo points make straight line or have some curve in this. I want to reject geo points those have sharp curves.
Mandeep
  • 140
  • 3
  • 8
-1
votes
1 answer

How do i update Google Maps polyline in real time?

what i have tried to get done here is to get gps cordinates from thingspeak and display them on a google map. I have been able to draw the polyline and the marker only once on the map. when i try to update the polyline path it disappears. here is…
Chinthaka
  • 3
  • 1
  • 3
-1
votes
1 answer

How to open infowindow after clicking on symbol associated with a polyline

I am working on a vehicle tracking solution. I have a polyline on which I animate a symbol(that looks like car) to make it look like car is moving on map. When my user clicks on the car, I want to open a infowindow to show driver's name and mobile…
PCP
  • 79
  • 1
  • 5
-1
votes
1 answer

Align Polyline to Edge of Road in Android Google Maps

I saw this in the web So I confirmed that it is possible to have 2 fill in 2 different polylines in one path in Google Maps. To experiment this, I tried to add only one polyline at first using this code: public static void…
Rick Royd Aban
  • 904
  • 6
  • 33
-1
votes
1 answer

How can I force Google Maps to render to polylines mid-loop?

I have a section of code where the user can toggle the visibility of a large set of polylines. To turn them off, I setMap(null), which happens quickly. But turning them on via setMap(map) takes a long time. Is there a way to trigger Google to draw…
Michael Schade
  • 408
  • 1
  • 5
  • 14
-1
votes
1 answer

Google polyline high memory useage?

The following function is called each second. The purpose is to update the last point on the polyline to follow a marker. The problem is, each time the code runs, the memory usage of the browser (CefSharp) increases by around 1 MB constantly, going…
-1
votes
2 answers

Incorrect Polyline Click fired when having multiple Polylines on Map

I have multiple polylines on a Google Map and add a 'click' event handler for each. All these polylines are added via javascript code. However when I click on any polyline on map, the click event for the last added polyline is fired. This makes it…
-1
votes
1 answer

Can't make Google Maps Polyline Disappear

I am using the Google Maps JavaScript api to draw routes between points. I don't want the line to appear between the start and end points, nor do I want the markers to appear. I have tried to make the start and end points invisible by setting…
maudulus
  • 10,627
  • 10
  • 78
  • 117