Questions tagged [polyline]

Polyline in computer graphics is a continuous line composed of one or more line segments.

Polyline in computer graphics is a continuous line composed of one or more line segments. You can create a polyline by specifying the endpoints of each segment.

1062 questions
6
votes
1 answer

PolyLines on google maps android for every location change, new polyline or setPoints?

In my app I'm drawing a polyline for every location change while I'm trekking around. This may be for an 8 hour backpacking hike so I may potentially have tens of thousands of points to plot. In my testing, I've noticed that when I'm zoomed in…
Blair Holmes
  • 1,521
  • 2
  • 22
  • 35
6
votes
2 answers

How to convert polyline with weight to polygon in Leaflet?

I need to allow user to draw a route (using polyline) with specified road radius (visually it was done with "weight" parameter). Visually it looks like that: So I'm wondering how can build a polygon around this polyline with some offset? Like…
6
votes
1 answer

How do you store data from NSMutable Array in Core Data?

The app i'm making draws a Polyline based on the users coordinates from CLLocationManager (these are all kept in an NSMutableArray) When the app closes, the current polyline disappears. How can I store the array of points in CoreData to be retrieved…
Peeter Vedic
  • 101
  • 1
  • 3
  • 8
6
votes
1 answer

(Android) Is it possible to change the shape of the polyline in google maps?

I know we can change the color of the polyline by using "polylineOptions.color(YOUR_COLOR);" bit is it possible to set a shape on it? (I would like the like to have a blue border and be white inside if the route that needs to be completed and if…
rosu alin
  • 5,674
  • 11
  • 69
  • 150
6
votes
1 answer

How do I draw polygon?( in C# WPF project)

Click the points, I want to make from the polygon area on image. myPolygon = new Polygon(); myPolygon.Stroke = Brushes.Black; myPolygon.Fill = Brushes.LightYellow; myPolygon.StrokeThickness = 2; myPolygon.HorizontalAlignment =…
user2853714
  • 71
  • 1
  • 1
  • 3
6
votes
2 answers

How to track a user's location and display the path travelled using Google Maps ios SDK

I'm currently building an ios app and I'm hoping to implement a function where the user's location is displayed on a Google Map view and when they move a polyline show's the path that has been travelled by the user so far. This obviously needs to…
laideybug
  • 167
  • 1
  • 4
  • 8
6
votes
2 answers

Arrow Mark over Polyline in Android Google Route Map

how to show Arrowheads over Polyline in Android Google map v2 I have gone through couple of links , most of them gives link to JS https://google-developers.appspot.com/maps/documentation/javascript/examples/overlay-symbol-arrow but I need in Android…
Ari
  • 1,296
  • 1
  • 18
  • 36
5
votes
1 answer

Animating a polyline's appearance using SVG animate

I am working with SVG in HTML to define specific shapes using the polyline tool. I am looking to animate the appearance of a specific shape into a different shape at the touch of a button and over a few seconds. I have been looking at using the…
howardrocks
  • 343
  • 1
  • 7
  • 17
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
1 answer

Offsetting a polyline in one direction

I'm looking for a way to offset an arbitrary curve defined through xy-coordinates in one direction (in R). I can use the {polyclip} package to offset the curve in two directions. library(polyclip) #> polyclip 1.10-0 built from Clipper C++ version…
teunbrand
  • 33,645
  • 4
  • 37
  • 63
5
votes
3 answers

C# to VB.NET Conversion (Google Polyline Algorithm Decoder)

I have some C# code that decodes map paths encoded using Google's polyline algorithm and am trying to convert it to VB.NET. Here's the C# code, which works fully: Collection decodePolyline(string polyline) { if (polyline == null…
amb9800
  • 365
  • 2
  • 5
  • 14
5
votes
0 answers

delete Polyline rendered with react-native(0.45.1), react-native-maps(0.15.3) and mapbox

I need to delete the polyline I've drawn on the component when a user performs a new search. Right now I end up with 2+ routes all drawn on the same map instead of the new search displaying only the new route. I followed this tutorial to render the…
5
votes
2 answers

How to draw UIBezierPath identical to MKPolyline in a UIView

Currently I am tracking my location on an MKMapView. My objective is to draw a bezier path identical to an MKPolyline created from tracked locations. What I have attempted is: Store all location coordinates in a CLLocation array. Iterate over that…
lifewithelliott
  • 1,012
  • 2
  • 16
  • 35
5
votes
2 answers

Can I draw a thumbnail for a polyline?

if a I have a path for a polyline saved as string, From google maps sdk: path.encodedPath() Or I have a series of latlngs points, Can I draw a thumbnail for that path ? I don't want to draw it on mapView, I wonder if I can draw it in any other view…
Wajih
  • 4,227
  • 2
  • 25
  • 40
5
votes
1 answer

Multiple polylines and infowindows with Google Maps V3

I have a map with multiple polylines and would like to open a line-specific-infowindow when clicking the line. So far my code only shows the content of the last iteration. I found two very nice examples of what I want but after hours of trying I am…
Christian Loncle
  • 1,584
  • 3
  • 20
  • 30