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

Google Maps 3 Redraw Polyline Flickering

I am drawing a Polyline with a fairly large number of lat/lng points (~ 1000). I have two sliders (start and end) that allow the user to adjust the time bounds which then updates the Polyline to show the data between those two times. My update…
5
votes
0 answers

Strange ArrayIndexOutOfBoundsException on some devices while drawing polylines

Below is the code that I am using to draw routes. Whenever the user pauses the workout I want to show this path as pink polyline. I therefore made my own interface named MapHelper and taken one boolean as isPause and lastPause. When the user saves…
5
votes
1 answer

Efficient algorithm to find which part of Polyline contains within another Polyline

I am trying to compare a Polyline - overview_polyline ruturned by Google Directions API with a set of already existing Polylines and see which part of the new polyline already contains within one of these polylines. For me polyline is a driving…
Alex K.
  • 3,294
  • 4
  • 29
  • 41
5
votes
3 answers

How to dynamically add polylines from an arraylist

I have an places = ArrayList> I am adding LatLng points into the inner ArrayList and then I have a for loop that loops and adds polylines to the map.. except it doesnt do that... How can I add polylines dynamically to the…
5
votes
2 answers

Google maps - get latlng of X% along a straight polyline

I need to get the latitude/longitude of a position at X percentage along a straight polyline segment between two other lat/lng points. The closest I have come so far is using the following (for 40% along the…
4
votes
2 answers

Arrow Symbols (Polyline) for AGM(Angular Google Map)

In angular 6. I am using flowing code for agm-polyline. I want to add Arrow Symbols (Polyline) (https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-arrow) in agm-polyline. But compiler shows error like Can't bind to…
4
votes
0 answers

Animate dotted polyline between two points on map

I am trying to create a dynamic number of points between two points on map. While this is quite easy and can be done by using the dotted lines from PolylineOptions, i also want to animate these points. I don't think there is any way provided by…
div
  • 1,475
  • 3
  • 22
  • 32
4
votes
2 answers

marker with polyline while dragging the marker using leaflet

Hi I have connection between marker with polyline like this Image . I am attaching a sample here. How Can I make drag possible that when I drag the the marker with polyline. example , If I drag the marker 3 it should also update the polyline point…
upendra
  • 339
  • 4
  • 20
4
votes
1 answer

Google Maps v2 Custom Tile Provider

i am developing a custom tile provider to show traffic data on Google Maps. In high zoom levels it is good for me. But polylines are overlapping at low level zoom. My custom tile provider class is public class PolylineTileProvider implements…
fatih inan
  • 144
  • 1
  • 6
4
votes
2 answers

Polyline with gradient across width in iOS Google Maps SDK

I have iOS app with the Google Maps SDK integrated. My route has default style and I'm able to change the color to be gradient in length via spans. Is it possible to update polyline color and define gradient in width instead (like original Google…
Mando
  • 11,414
  • 17
  • 86
  • 167
4
votes
1 answer

Clip or remove some portion of polyline google maps v2

I have drawn polylines for different points as in this image. CENTER VIEW :- (CIRCLE) Code for **MARKER**: viewIntermediateMarker = ((LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE)) …
4
votes
1 answer

What is the polylineOptions parameters of the new Google Maps website?

I developed a website using Google Maps direction. My Polyline configuration is as following: var lineSymbol = { path: 'M 1.5 1 L 1 0 L 1 2 M 0.5 1 L 1 0', fillColor: 'black', strokeColor: 'black', strokeWeight: 2, …
Anton R
  • 519
  • 1
  • 6
  • 14
4
votes
2 answers

Create a Plus Symbol (+) with an SVG Path

Im trying to create a + sign as an SVG path for a google maps project. The plus symbol will be plotted along a polyline using the Icon path property. So far I've manage to get close, my plus symbol currently looks like a horizontal line with the…
Luke Baughan
  • 4,658
  • 3
  • 31
  • 54
3
votes
2 answers

Google maps api parallel path lines

I am working on a sort of itinerary mapper for packaged vacations, and I'm really happy with what I've done so far; I have the directions api implemented with a custom renderer, so I can take driving directions, and plot my own polyline complete…
Ben
  • 745
  • 7
  • 23
3
votes
1 answer

Update polyline route with user's live location flutter

When i update the polyline code, on location change method, It gives me additional straight line. I want to update my polyline when user move from one source to destination. I am able to create a polyline route but i want that route become shorter…
1 2
3
31 32