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
4
votes
0 answers

Is it possible to add arrows heads on polyline in flutter?

I have implement a polyline in flutter Map _mapPolylines = {}; int _polylineIdCounter = 1; void _add() { final String polylineIdVal = 'polyline_id_$_polylineIdCounter'; _polylineIdCounter++; final PolylineId…
4
votes
1 answer

Dashed Polyline in Folium

I have an assignment which requires me to make an itinerary on Colaboratory using Folium. I have 8 different locations in Europe linked together with a Polyline. I was trying to make the line dashed but couldn't find a way to... I am a beginner and…
s13ve
  • 43
  • 1
  • 4
4
votes
4 answers

Algorithms to normalize finger touch data (reduce the number of points)

I'm working on an app that lets users select regions by finger painting on top of a map. The points then get converted to a latitude/longitude and get uploaded to a server. The touch screen is delivering way too many points to be uploaded over 3G.…
Sonny Saluja
  • 7,193
  • 2
  • 25
  • 39
4
votes
1 answer

Animate polyline on Mapview Mapbox iOS

I am replacing GoogleMaps SDK with Mapbox SDK for my iOS app. I am stuck at a point where my app has a feature where I animate polyline(already added) on map like Uber app. But I cant seem to make it work with Mapbox iOS SDK. Mapbox has an example…
Paras Gorasiya
  • 1,295
  • 2
  • 13
  • 33
4
votes
1 answer

Binding of a Polyline. What am I doing wrong?

I am trying what I thought a simple thing: drawing lines of a list of point. If I put the list statically in the xaml of my window everything is ok. If I do the bind, then nothing is displayed. the window code:
Stephane Rolland
  • 38,876
  • 35
  • 121
  • 169
4
votes
1 answer

Trying to draw a polyline on folium from China to USA that goes EASTWARD (currently the default goes WEST). Thoughts?

folium.PolyLine([[34.4080345,86.0063832], [36.2044029,-113.7621932]], color="red", weight=20, opacity=0.8).add_to(my_map) First Lat-Long is China, while the second is USA. Currently it plots the line going West (over India, Middle East, etc.) And…
4
votes
0 answers

Draw a curved line by GMSPolyline google maps ios sdk

I want to draw a curved line between two markers (something like Uber) but there's no method for doing that. is there any idea?
Mehrdad
  • 1,050
  • 1
  • 16
  • 27
4
votes
1 answer

Draw a curve (bezier curve) between two lat long points on google maps android

I want to draw a curve (Beizer curve) between two lat-long points. Currently i am referring this post (code is in javascript). Code to get curve points using cubic bezier equation private void drawElementsOnMap(LatLng init, LatLng end) { …
Sarweshkumar C R
  • 543
  • 1
  • 8
  • 19
4
votes
5 answers

Swift 3: How to remove the tracked polyline in Google map

I have draw the polylines, but I don't no that what coding can remove the tracked polyline in the google map. I'm trying some coding in below. this is no working. var polyline = GMSPolyline() polyline.map = nil this is working to remove…
ShingHung
  • 337
  • 1
  • 5
  • 14
4
votes
4 answers

Android Map: How to animate polyline on Map?

When I plot my polyline on Map from point A -> B, I have a requirement to draw the polyline with animation. As if from A-> B the polyline keeps on drawing. I have used below link for…
Ritu Raj
  • 543
  • 2
  • 6
  • 23
4
votes
4 answers

Customize rounded corner radius of a WPF polyline

is it possible to set the corner radius of a WPF polyline to a custom value. For a WPF border it is possible. In my opinion, the polyline can only set StrokeLineJoin="Round", but not the radius:
Jo123
  • 311
  • 1
  • 3
  • 9
4
votes
2 answers

OSMDroid - Center to Polyline

I am working with OSMDroid, I have a collections of Geopoints and then I create a Polyline like this: private void drawPolyline(ArrayList polyline) { Polyline line = new Polyline(this); line.setPoints(polyline); …
8370
  • 153
  • 10
4
votes
2 answers

google maps api v3: add point on polyline between two existing points on click polyline event

How can I add point on a polyline between two existing points on a click polyline event? Thank you!
Dronnikkl
  • 41
  • 1
  • 2
4
votes
2 answers

How to keep out of viewport leaflet polylines rendered at all times?

Whenever I move the view on my leaflet map, polylines whose centers are no longer in view are removed. I have a polyline with a large stroke size (~500px) that is not visible even when part of it should be. This same problem can also be observed…
Kade Keith
  • 208
  • 1
  • 11
4
votes
2 answers

Is it possible to change the size of a dash of a line?

I am drawing a dashed line on the TImage Canvas and found out that the size of dashes is way too big for the drawing area. Is there a way to change the size of dashes of lines drawn on canvas? This is what i do to be able to draw dashed…
user1651105
  • 1,727
  • 4
  • 25
  • 45