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

Google map Android API v2 - InfoWindow on polyline?

I am drawing polyline on my map,I need to show some data to user now. How I can draw text or InfoWindow on each polyline ? I add polyline like : ArrayList points = null; PolylineOptions lineOptions = null; MarkerOptions markerOptions = new…
user4813855
5
votes
2 answers

How do I split/divide polyline shapefiles into equally-length-smaller segments?

I have a polyline shapefile, which represents part of an urban road network. My shapefile contains several line/street segments (in my case 58). By using R-cran, I would like to further divide the polyline segments into smaller parts having equal…
MGV
  • 71
  • 1
  • 5
5
votes
1 answer

Draw polyline snap to road Android google maps app

I'm currently developing an android google maps app help to get direction between 2 points on the map. I'm able to get the response from google maps service (Direction API) and draw polyline (Google Maps Android SDK) base on list of steps but the…
David Nguyen
  • 51
  • 1
  • 3
5
votes
0 answers

Draw line with gradient using CGContext on iOS

I'm looking for a way to draw a line with a linear gradient along it's path using CGContextRef. I've tried several approaches but most are focussed on filling an area (rect) with an gradient which is not what I need. I use the following code to…
Mattijs
  • 51
  • 1
  • 3
5
votes
1 answer

Google Map V3 - Undo last point while drawing with the drawing manager

I have an application using the Google Drawing manager to draw polylines and polygons on a map. Although this is an excellent library I got a question from a user if it would be possible to undo the last drawn point WHILE drawing a polyline. I have…
Stackbever
  • 443
  • 4
  • 15
5
votes
1 answer

free form drawing on a google maps

I am using Google Maps API V3 to do some free form drawing of a polygon in Google Maps, as opposed to the standard point-per-click polygon that comes with the standard library. Everything works great. Problem: Polygons generates lot of editable…
5
votes
2 answers

hide and show a polyline in leaflet?

I'm using leaflet for show raw itinerary to go to some markers. I'm showing my itinerary with a leaflet polyline. But I would like to be able to How to hide and show a polyline in leaflet ? I can do this : $('.leaflet-overlay-pane').hide(); and…
Baptiste Metge
  • 189
  • 2
  • 3
  • 8
5
votes
2 answers

Get point on a path or polyline which is closest to a disconnected point

I have a point and a path, polyline, or set of points to create lines. How can I find the point on my path which closest to another disconnected point? It's easy to store or transfer my path / polyline as any of the WPF geometry controls, but do…
Kirk Broadhurst
  • 27,836
  • 16
  • 104
  • 169
5
votes
1 answer

Google Maps: clickable polyline icon

I have two markers with a polyline connecting the two. I have click events on the markers and the polyline, but i was trying to make the polyline easier to click without placing a new marker or increasing it's strokeWeight. So I created a circular…
Hugo Rocha
  • 537
  • 5
  • 23
5
votes
1 answer

MapKit Polyline custom zoom?

I am trying to learn how to use a polyline to connect two points on a map in ios6. First off, I have read over every tutorial on this subject that a simple Google search turns up and can not get polylines to work for one reason. Every tutorial that…
Praxder
  • 2,315
  • 4
  • 32
  • 51
5
votes
2 answers

Linear-Gradient on a WPF PolyLine

I want to draw a Polyline in WPF which has a different opacity between its beginning and end. I used the LinearGradientBrush for it. However this doesn't correspond to my expectations. The gradient takes into account the position in the bounding box…
theskull31
  • 51
  • 2
4
votes
2 answers

How to draw a shape point by point in C#?

I have the basic idea of how it can be done but I don't really know the code. I want to use a WPF application in Visual Studio. When the user clicks a "Draw" button, it would draw a shape (a spirograph), on the canvas (using a polyline) but the…
Willis
  • 41
  • 1
  • 2
4
votes
3 answers

Create a polygon around a polyline like a buffer

I have looked around to find an example of how to take a polyline and create a buffer around it so I end up with a polygon. So far I found out I need Minkowskis Sums to do so, but I can't get my head around to raw algorithm and translate that in to…
eNepper
  • 1,889
  • 2
  • 13
  • 12
4
votes
2 answers

How to find out if two PolyLines intersect

I have a problem finding out if two PolyLines intersect. Well the main objective is to compare last X and Y with the other PolyLine and find out if it's colliding aka intersecting with it. There are gaps in the data due moving the X and Y, so most…
Rumplin
  • 2,703
  • 21
  • 45
4
votes
1 answer

Create a buffer on polyline - Leaflet

I am trying to achieve a buffer similar to Leaflet.buffer on my map. However, Leaflet.buffer seems to be only working with Leaflet.Draw. I am using Leaflet Editable to draw my layers and I have a polyline I would like to add a buffer to. However, I…
vtCode
  • 71
  • 7