Questions tagged [polylineoptions]
14 questions
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…

Harsha
- 659
- 10
- 23
3
votes
3 answers
PolylineOptions .color() not working
I'm trying to set red color on my polylines of my map with this code:
PolylineOptions rectOptions = new PolylineOptions();
rectOptions.color(R.color.colorPrimary);
String[][] lineInformation =…

NullPointerException
- 36,107
- 79
- 222
- 382
2
votes
0 answers
How to draw a route in google maps with flutter
I have added a google map to my flutter application,
But when I use a flutter_polyline_points to show the road nothing is gone to show
I haven see any tutorial to fix this problem but then I knew that to
Decode an encoded google polyline string e.g…

Ibrahim Mahmoud
- 65
- 1
- 9
1
vote
0 answers
Add markers on bing map polyline in angular using X-map-polyline
Currently i am using X-map to display Bing map and markers using rest API. Now i want to draw route on the map, for that i am using x-map-poly line with sample lat long values. Line is printed on the map but how to add markers for the route? Please…

Vishal Pawar
- 51
- 4
1
vote
2 answers
PolyUtil.decode Throwing StringIndexOutOfBoundsException
When using Google Maps PolyUtil.decode it gives me this error java.lang.StringIndexOutOfBoundsException: length=60; index=60 at java.lang.String.charAt(Native Method) at com.google.maps.android.PolyUtil.decode(PolyUtil.java:464)
When I trace the…

lifespunchingbag
- 129
- 1
- 3
- 12
1
vote
1 answer
android Polyline going to lag the map after while
i am creating a user tracker project , and what i want to do is to draw the user path on the map , the method that i used it's Polyline and this is the code
public void drawOnMap(ArrayList directionPoints) {
PolylineOptions rectLine =…

mezo
- 93
- 2
- 9
0
votes
1 answer
Error updating PolylineAnnotation in mapbox_maps_flutter
I have been trying to update PolylineAnnotation with a new color but keep getting the below error.
[maps-android\AnnotationManagerImpl]: Can't update annotation: com.mapbox.maps.plugin.annotation.generated.PolylineAnnotation@774cedb, the annotation…

Indrajeet Singh
- 62
- 2
- 10
0
votes
0 answers
polylines are not getting cleared in flutter map
When the user is outside of the building the polyline should disappear. But polyline still visible even if the user is outside of the building:
`map_view.dart`
import 'dart:convert';
import 'package:flutter/material.dart';
import…
0
votes
0 answers
google map direction with multiple colors
I trace route between two points using directions API google map .I want to use one color for the route starting from pickup point to the middle point route , and the other half of route another color.
Example :
The route contains two colors
From A…

alice evra
- 29
- 5
0
votes
1 answer
How do I convert string from shared preferences to MutableList pairs to draw polylines in kotlin?
I want to convert the value from shared preferences to mutable list of LatLng pairs to draw a polylines. I dont know how to convert it. Please help.Here I get the value in shared preferences polyl as…

user16493824
- 57
- 1
- 12
0
votes
0 answers
How to remove previously added polyline when add new polyline in google map
mapFragment.getMapAsync { GoogleMap ->
gMap = GoogleMap
val sensor = "false"
val mode = "driving"
val routeList = ArrayList()
var distance : String? = null
gMap.setOnMarkerClickListener {…

R Suman Radhakrishnan
- 83
- 2
- 12
0
votes
0 answers
Multiple PolylineOptions on GoogleMap Fragment
I am trying to insert more polylineoptions in my map, I would like to put 3 conditions and based on them choose the color of the line.
With the code I have I can see the correct map portion, but it doesn't show any lines.
Anyone know how to help…

kAnGeL
- 743
- 1
- 5
- 8
0
votes
0 answers
Adding leaflet layerGroup options dynamically
I'm using the leaflet snaking polyline to draw a route on a map with multiple markers, and have it working. However, I want to make the snaking speed a setting that the user can change, so I need to be able to modify the default snaking speed when I…

cpeddie
- 759
- 13
- 38
-1
votes
1 answer
How to connect specific LatLng coordinates with polyline without it automatically connects to other points?
I'm creating a page that shows a world map with markers placed at LatLng coordinates and I'm trying to link them with Polylines. However, I don't want each of them to be linked together. For example, given a set {A,B,C,D,E,F},
the links are A->B,…

cartmanbrahhhhh
- 1
- 1