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
-1
votes
3 answers

Calculate the distance between multi geolocations points

My application collects geolocation point from the user every certain amount of time, I am trying to use these points in order to calculate the distance from the first point through all of the points. please note that when the user moves in a…
-1
votes
1 answer

not capable of drawing straight line polylines flutter google-maps

I have implemented a screen with GoogleMaps widget and used final Set _polyline = {}; List latlng = List(); with a sample of latlng.add(LatLng(7.2008,79.8737)); latlng.add(LatLng(7.2018,79.8737)); …
Viroj Fernando
  • 461
  • 4
  • 8
-1
votes
1 answer

How can I change the color of an MGLPolyline?

How can I change the color of a MGLPolyline after its already been created? I have this code I'm trying to make work in the didSelect annotation delegate method: chosenPolyline?.polyline //= UIColor.green I have looked here. But the answer does not…
user11182243
-1
votes
1 answer

Error when inserting coordinates into array in Swift

Cannot convert value of type '[Dictionary]' to expected argument type 'UnsafePointer' Is the error I'm getting when trying to insert coordinates into my array. Here is my code: var locations: [CLLocationCoordinate2D] = [] //Updating…
user11131456
-1
votes
1 answer

How to create polyline - SVG

I am trying to create this: polyline in SVG. How would I do that? Thank for all answers
Lochness
  • 7
  • 6
-1
votes
2 answers

Google Maps get a polyline with dots

In the Javascript Google Maps API v3 it is possible to draw a movable polyline. This is exactly the way I want my polyline to look, however, it doesn't need to be movable. Now because it is movable it takes a lot more time to draw these polylines.…
-1
votes
1 answer

ArcGIS labelling both ends of a polyline

I have a shapefile of polylines with 2 fields IA and PA that I want to use as labels. I need the "start" of the line labelled with the values from IA field and the "end" of the line labelled with the value from the PA field. I've found a way to do…
rachah
  • 1
-1
votes
1 answer

How to get vertexes of polyline from a list of its points?

I have a list of points (pixels) QList that represent a curve looking like a orthogonal polyline. My task is to split this one to small straight lines (an instance of QList). In order to know the end of a previous subline and…
Nikita
  • 337
  • 1
  • 3
  • 12
-1
votes
1 answer

Drawing Polyline between all markers from json request in android

I'm creating a hicking app in android, and so far, i can insert my path inserting various markers along the way i want to create, now i want to draw a polyline between the markers that i get from my mysql database. Would appreciate some guide to the…
Sapo121
  • 71
  • 1
  • 12
-1
votes
1 answer

What is the correct format of saving Lat/Long coordinates into database and assign into path in javascript?

I'm trying to fetch the coordinates of a rout from my database which contains a set of lat/long strings. Suppose I saved a path information (lat/lng) in my table by this format: {lat:36.26479895658131,lng:…
Mehdi
  • 19
  • 1
  • 7
-1
votes
1 answer

Swift Encode Lat&Lon to Polyline

I have a list of lat&lon, want to show it on map as a path. I could show polyline on the map by using GMSPath(fromEncodePath: polyline). How could I convert lat&lon list as a polyline or display it on the map? Much appreciated!
Eric
  • 303
  • 1
  • 8
  • 19
-1
votes
1 answer

How to make polylines show on map with checkbox?

I was wondering how can I make polylines to show on my map when I click on checkbox?
-1
votes
1 answer

Retrieving from firebase to array

I am a newbie in firebase. In my web app I have stored a set or coordinates in firebase. The structure looks like this: { "pointdata" : { "-L0eZoI7sULutu5nVOgw" : { "lat" : 42.76314586689492, "lng" : -91.966552734375 }, …
-1
votes
1 answer

changing strokeColor AFTER showing the gmap route?

On my map page I made for bicycle travel, I can change the style of the map and adapt the route strokeColor, but ONLY if I 'rebuild' the route. If I made some manual changes on the waypoints, those changes disappears when I rebuild the route. I try…
philperil
  • 1
  • 1
-1
votes
1 answer

How to save polyline path drawn by google map?

Hey friends i am showing the path as user(smartphone) moves from one location to another in my app. I want to store that path till user explicitly clears it . when I close the application the drawn path gets removed from the map. I want to save that…
AkashK
  • 201
  • 1
  • 4
  • 13