Questions tagged [google-polyline]

Google Polyline class in Google Map v3

A polyline is a list of points, where line segments are drawn between consecutive points.

481 questions
0
votes
1 answer

Google Maps Polyline to Postgis with Java/Hibernate

I have a page where the user enters the starting point and ending point and I show de route in the map. I would like to know how to get this polygon (polyline) and save it in Postgis through the Java / Hibernate. Someone can help me? Thanks. Luciano
Luciano Borges
  • 817
  • 3
  • 12
  • 31
0
votes
2 answers

canvas draw line in android

Hi everyone I'm trying to draw polylines between two points on the map but when I run my method it gives the errors listed below. I've narrowed it down the erroring line to: canvas.drawLine(p1.x, p1.y, p2.x, p2.y, mPaint); here is my class that is…
0
votes
0 answers

Remove completely polyline

I have the next code for loading a path using a xml file, but when I try to load another path for other vehicle, it load also the last path together with the new one. Before load the XML file again I firstly call a remove function. But it only hide…
Fran Rod
  • 586
  • 4
  • 14
  • 26
0
votes
1 answer

Remove polyline

I have the next code which show a path using a polyline. How can I remove it? downloadUrl("myfile.asp", function(data) { var xml = xmlParse(data); var markers = xml.documentElement.getElementsByTagName("marker"); var path = []; for (var i = 0; i <…
Fran Rod
  • 586
  • 4
  • 14
  • 26
0
votes
1 answer

draw path using polylines from a xml file

I want to draw a path on google maps using coordinates gotten from a xml file. I have the next code, but it doesnt work: Does anyone know how to do it? Best regards. downloadUrl("myfile.asp", function(data) { var xml = xmlParse(data); var…
Fran Rod
  • 586
  • 4
  • 14
  • 26
0
votes
0 answers

pass arraylist to overlay class from mapactivity

I want to pass an arraylist of values from mapactivity to the overlay class: MyOverlay dataOverlay = new MyOverlay(loc); In the overlay class a constructor is created: public class MyOverlay { public MyOverlay(List loc) { // TODO…
Sarah Salar
  • 193
  • 1
  • 3
  • 14
0
votes
1 answer

Create a polyline from a KML file

I have a map on my website and I'd like to make some paths on it from kml files. I found geoxml3, and I have this code: