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

How can i draw lines(polygons, circle) on map with hand gesture and search for real estate listings inside the line area in flutter

i am new to flutter, i am currently developing a real estate mobile app and i want to be able to drag and draw lines(polygon, circles) on flutter map and return listings inside the area i draw on just like in redfin app. i have tried a lot of…
hybrid_pro
  • 31
  • 4
3
votes
1 answer

How to create spatial line dataframe from encoded polylines?

I'm working with transportation network dataset and I want to import traffic speed data provided as JSON format. I could read the data in R using read.scorata(). However, I couldn't covert it to a spatial dataframe to be used for further analysis.…
Mohammad
  • 67
  • 1
  • 9
3
votes
3 answers

How to draw polyline on google map in flutter

I'm trying to draw polyline between two location with using flutter google map library. // here the Map Body body:Container( child: GoogleMap( myLocationEnabled: true, mapType: MapType.hybrid, …
3
votes
0 answers

how can set padding on poly line in google map in android

i try to draw poly line between two or more location on google map but i need poly line like as shown in image correct but it can show map like wrong first image is wrong second image is correct how can i set poly line like correct…
Darshi Patel
  • 294
  • 3
  • 11
3
votes
1 answer

Position infoWindow away from overlapping polyline

I'm developing an Android application which contains an activity with google maps where I plot a path between two location with polylines. I have added markers at source and destination with infowindow showing some data, but these infowindow blocks…
3
votes
2 answers

PolyLines not showing in google maps

I want show path between destination and source on google map. I am google direction api's getting route between of co-ordinates , I am getting response and set on google map but not showing on map . My code is func getPolylineRoute(from source:…
3
votes
1 answer

Google map change polyline strokeweight when zoom change

How can change polyline strokeweight when zoom change like Uber The Polyline width change when the camera zoom change
3
votes
3 answers

Multi color Polyline in google map v2 in android

I searched a lot i didn't find any proper solution for it.Help and link could be appreciated :-)
prasanthMurugan
  • 597
  • 6
  • 21
3
votes
1 answer

Google Elevation call works with browser but not with node.js

TL;DR I'm building an application with node.js that retrieves the elevation, starting from an array of latitude/longidtude points. To get the elevation from a lat/lon coordinate, I use GoogleMaps APIs, and in particular Google Elevation APIs (find…
3
votes
2 answers

Getting Polyline ID Clicked

I'm using Google Maps v3 and have a map placed on my page. The user selects a bunch of data from some lists and then my map is updated with data from my db and provides the user with a map with a polyline of the selected data. The data is…
ScottM
  • 43
  • 1
  • 8
3
votes
1 answer

how to draw a google maps waypoint with multi-colored polylines

Hi I try to draw polylines with directions waypoints on google maps . I tried something like that. My draw I want to draw the routes with different colors like this. Google maps directions example ss I wrote this sample code . function initMap()…
Abdullah Mara
  • 59
  • 1
  • 1
  • 8
3
votes
2 answers

How to show duration popup on polyline?

I want to show route duration on Polyline as shown on the screenshot. I have done some digging on internet but couldn't find the solution. Guide me if anyone of you have any solution. Thanks.
activesince93
  • 1,716
  • 17
  • 37
3
votes
1 answer

draw the path with array of points on google map in android

hi i have created app with integration of google map where i need to draw the path depends upon the driving movement. so here i can able to get the array of points which having current lat and lang at every 2 seconds now i want to draw the path by…
siva
  • 375
  • 6
  • 24
3
votes
0 answers

Google Maps: draw two lines in one route (because of directions)

I'm using google maps directions api to draw traffic information on map. I want to show my custom traffic info, for both driving directions on one street. When I request the directions from A to B and from B to A, it renders the 2 routes overlapped,…
3
votes
0 answers

Performance issue on rending large number of markers with polylines in Google Maps V3

To render a large number of simple (two point) polylines with markers on a map getting performance issue. Example (Tested on Firefox): To place 30,000 markers and 15,000 simple polylines, it’s taking time to render. To solve this (streaming data):…