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
0
votes
1 answer

How to find center of google map polyline having more than two cordinates?

I am working on asp.net mvc 3 project we are using Google maps.I want to display marker at center of poly line. I am using below code var start = new google.maps.LatLng( MyMapCordinates[0].lat(), MyMapCordinates[0].lng() ); var End = new…
user1799982
  • 102
  • 1
  • 11
0
votes
1 answer

Google maps api v2 polylines android

I need to draw the polylines on the google map from a ArrayList each time a new LatLng is found whose color is according to percentage of the current speed to that of max speed of the vehicle. I am using the following code for that: for (int i = 0;…
ekjyot
  • 2,247
  • 7
  • 39
  • 63
0
votes
2 answers

NullPointerException whilst trying to add polyline/marker to a GoogleMap

I have a SupportMapFragment with a GoogleMap object (which I have manipulated already using a GoogleMapOptions) and it is displaying/functioning fine, until I call getMap().addPolyline(...) where I get a NullPointerException. Here is my layout xml…
0
votes
1 answer

google maps marker not centred on polyline v3

I have polylines on my map and markers which should sit on the polylines. The problem is the markers are shifted top left and they look like they are in some distance from polylines while they should be on top of them. Anybody has an idea how to fix…
nickornotto
  • 1,946
  • 4
  • 36
  • 68
0
votes
2 answers

Polyline bound to ObservableList doesn't refresh

I have a class (let's call it externalClass) with a ObservableCollection channel1 inside. (the class itself does NOT implements INotify) In the MainWindow I have a polyline binded to this externalClass.channel1 that uses a converter from…
javirs
  • 1,049
  • 26
  • 52
0
votes
1 answer

Multiple MKPolyline on MKMapView iOS6

I am working with MKMapView to draw route using MKPolyline, I am able to draw single route with an array of waypoints.Now I want to draw multiple MKPolylines on the MKMapView for instance, A blue MKPolyline from 28.102021, 77.10129 to 28.20320,…
Ankur Arya
  • 4,693
  • 5
  • 29
  • 50
0
votes
1 answer

How to draw multiple routes on iOS 6 maps

Possible Duplicate: Multiple MKPolyline on MKMapView iOS6 I have two csv files containing latitude and longitude. I want to draw two polylines or routes on the iOS 6 maps. How can I do this?? I've tried the following code to draw single…
Ankur Arya
  • 4,693
  • 5
  • 29
  • 50
0
votes
1 answer

Why can't I get a specific object from this JSON document on Android?

I want to get polylines from a JSONObject but the following code doesn't work. JSONObject poly = steps.getJSONObject("polyline"); I get this error: org.json.JSONException: No value for polyline this code works fine JSONArray legs =…
user1761808
  • 61
  • 1
  • 4
0
votes
1 answer

How can i delete polyline from googlemap?

I have a project that i draw polyline on googlemaps using coordinates queried from database. Those coordinates show a cars daily route. When i query another days route, it collides with the previous one. I tried to delete the previous one or just…
ag0702
  • 381
  • 1
  • 6
  • 18
0
votes
1 answer

Rotate an arrow in opencv

I wrote this bit of code to draw block arrows on a opencv MAT image, it works but my question is, is there an easier way to rotate the image? Is it necessary to code it in detail or is there a rotate transpose or flip method in opencv? void…
user784435
0
votes
1 answer

Creating polygon from polyline

I have a road network shapefile as a polyline and I want to convert this to a polygon layer wherever the network forms a 'hole' or closes in on itself. The problem is a hole could be made from more than one road feature. (i.e. three connecting roads…
dcn23
  • 111
  • 6
0
votes
1 answer

Why the entnext command returns nil?

I am pretty new to AutoLISP and also AutoCAD. I want to get the vertices of a polyline, so that I can change their widths. Here is a piece of code I have written. I want to know why it doesn't work. The "entnext" part seems to cause the…
Fatima
  • 869
  • 10
  • 35
0
votes
1 answer

Multiple Polylines - need to change the color

I am new to Google Maps - I am trying to change the color of the second polyline on my map. Here is what I have so far ~ var direction = new GDirections(); direction.load("from: Oregon 99, near, Halsey, Oregon to: Oregon 34, near, Tangent,…
0
votes
1 answer

Creating a dynamic map from set of Lat longs c#.net

I am doing a c#.net application in which i want to show a map(poly line) with dynamically fetched lat longs from database, I tried Google's reverse geocoding but i am stuck here to work it out,can any one please help me to find a right solution for…
Srikanth
  • 147
  • 1
  • 2
  • 15
0
votes
1 answer

How to bind a polyline in template?

I am trying to bind the points of a polyline in control template. The points should bind to a point collection in the codebehind. My current xaml code is as follows: