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

Polyline using DataBinding and PointCollection for continuous update

first of all I describe my objective I want to achive. I want to visualise a continuous data stream (maximum 1000 values per second but could be reduced). This data stream should be visualised as a chart - being more precise it's a visualisation of…
Kai Krupka
  • 137
  • 1
  • 2
  • 8
7
votes
1 answer

Leaflet - How to match marker and polyline on drag and drop

I have a project with leafletJS. For example, I have 2 points (A, B) in map. I display it as 2 Markers I must draw a polyline from A to B. I moved marker A and I want to the head of polyline of marker A match to marker A (moved follow marker A). How…
Truong Mai
  • 75
  • 2
  • 6
7
votes
3 answers

Getting the bounds of a polyline in Google Maps API v3

Is there any easy ways to find the bounding box of a polyline using Google Maps API v3? I'm working on a project where I need to update the bounds as data is added and removed from the map. This is pretty easy by just doing bd.extend(point) where bd…
Ian Burris
  • 6,325
  • 21
  • 59
  • 80
7
votes
2 answers

Variable Polyline Weight with GEOJSON in Leaflet

Here is the entire HTML document: Top 5 Importers of Tungsten
7
votes
3 answers

How to draw two polylines in different colors in Mapkit?

this is my code for drawing first Line, for another line with another color how can i do ????? func mapView(mapView : MKMapView! , rendererForOverlay overlay: MKOverlay!) ->MKOverlayRenderer! { if overlay is MKPolyline { var…
user4473926
7
votes
0 answers

JavaFX Polyline shape stroke width scaling

In my javafx application I need to draw very specific chart. I decided to create custom control for this purpose. On control initilization I'm creating Polyline shape using my data series items as point coordinates, then translate and scale it to…
just.slon
  • 123
  • 6
7
votes
1 answer

Prevent two google maps polylines overlapping

I'm making a google maps app that displays GPX tracks. Some of the tracks do overlap for a distance. They do not have identical points, but the polylines seems identical when they are drawn. This makes one of them disapear behind the other one. The…
Astor
  • 71
  • 2
7
votes
1 answer

How to display a moving track on Android device

I want to plot my track using GPS on an Android device. I have no problem displaying a completed route but am finding it difficult to show the track as I'm moving. So far, I've found 2 different ways to do that but neither are particularly…
Doug Conran
  • 437
  • 1
  • 5
  • 17
7
votes
2 answers

Remove a polyLine from the mapView

I've read many posts about it and still i have a problem. This is my code to draw a polyLine between two points: -(void) drawAline:(CLLocation*)newLocation { //drawing a line CLLocationCoordinate2D coordinateArray[2]; coordinateArray[0] =…
Alex Guberman
  • 203
  • 1
  • 3
  • 15
6
votes
1 answer

Error while updating property 'lineCap' of a view managed by: AIRMapPolyline in expo

expo version : sdk42 react-native-maps: 0.28 and 0.27.1 both using react-native-maps-directions here is code
Ibad Ur Rehman
  • 696
  • 1
  • 9
  • 16
6
votes
2 answers

drawing a line in google maps perpendicular to two points

I have two coordinates for which I would like to draw a perpendicular line of equal length. Is there either a simple google maps offset for this or a clean javascript approach by which I might accomplish this? What would that be? Here is what I have…
sudocity
  • 377
  • 6
  • 14
6
votes
3 answers

Removing polylines from google maps

I'm using the DirectionsRenderer to display a path, though after I'm done with that I'd like remove the polyline and carry on with things. I don't seem to have control over markers and polylines created by this function. Does anyone know how to…
user594388
  • 61
  • 1
  • 3
6
votes
3 answers

Draw polyline using Google Maps in custom view with Swift 3

I am trying to draw route between two places using Google Maps on a custom UIView but not able to get it correctly implemented. My custom view is mapViewX. I've installed google sdk using pods which includes pod 'GoogleMaps' and pod 'GooglePlaces'.…
user6500031
6
votes
2 answers

How to ensure CAShapeLayer resizes to fit in UIView

I am currently converting an MKPolyline to a BezierPath then a CAShapeLayer then adding the layer as a sublayer to a UIView. Currently struggling to ensure the path is not drawn outside the bounds of the UIView. I do not want to mask and have part…
lifewithelliott
  • 1,012
  • 2
  • 16
  • 35
6
votes
3 answers

Polyline with infowindow in android app

In android map application, it shows tool-tip window for multiple route, the same way google map also shows that window. I was wondering whether that is a custom marker or a infoWindow over poly-line. Does any body knows how to achieve this with…
NetDemo
  • 373
  • 1
  • 4
  • 14