Skip to main content
Filter by
Sorted by
Tagged with
4 votes
2 answers
162 views

I have an encoded polyline string: ivgfAw_}bNaAfMwBjZk@IUrCGlC?jBFjCDbAV~B^xBVdAJFbB~EpApClAzBfC~DfAbBvDxGFZvDxGtAzBpDbHp@hAbDdG|EhH@d@bEbGlDnFl\fi@lIfN~OlWvFbJ|BpDg@~x@bDdFtHfMvZ~f@hDvF|EzHhDxFxTj^...
Ragul PR's user avatar
  • 422
1 vote
1 answer
76 views

I have the following code to catch the polyline click localPolyLine.addListener('click', (e) => { }); Let's say the localPolyline has many points in it's path. How can I get the index of the path ...
vagelis's user avatar
  • 490
0 votes
0 answers
177 views

I am using the computeRoute post method provided by Google's Routes API. The method returns a JSON file with the following data : { "routes": [ { "distanceMeters&...
fadl masri's user avatar
0 votes
1 answer
339 views

I want to have smoother polylines displayed on the map. See the screenshot of sharp polyline. I found that "polylineQuality":"HIGH_QUALITY" is available in Routes Preferred API ...
m.altinisik's user avatar
1 vote
1 answer
144 views

I do not know what else I can do to prevent my app from getting killed by Android. I cannot find the spot that leads to accumulate my memory. In the Foregroundservice I am receiving my latitude/...
Bernd's user avatar
  • 657
0 votes
1 answer
2k views

I'm trying to use the @react-google-maps/api library to render a Google map on a react component and draw a polyline on the map, however, the polyline data that comes from the backend is encoded like ...
Ruby's user avatar
  • 3,086
0 votes
0 answers
161 views

When I add multiple polylines using Google Maps SDK 8.1.0 in iOS, the joints of every polyline I see are cut. I want a smooth polyline at each joint as well either overlap. Here is the code and ...
Ajay Dubey's user avatar
1 vote
0 answers
207 views

In my Flutter project, I've been working on drawing a polyline while updating a card. Generally, the implementation has been successful and the polyline appears as expected. However, I've encountered ...
DHANESH P's user avatar
  • 204
2 votes
1 answer
976 views

In this code sample, I want to show the distance attribute on top of the PolyLine with an offset of 45% (almost next to the arrow). But I was not successful in achieving that. <GoogleMap id=...
Amir-Mousavi's user avatar
  • 4,653
0 votes
1 answer
2k views

I have an API that returns an encoded polyline string and I need to show the polyline on a map. How can I trasform the String "_p~iF~ps|U_ulLnnqC_mqNvxq`@" to a Set<Polyline> ? ...
Danilo's user avatar
  • 431
2 votes
0 answers
788 views

I was making 2 scene with google Maps and drawing polyline on the map, the apps have no problem running and everything working fine, however on the debug there is this big stack of error in debug ...
Flutter Beginner's user avatar
0 votes
0 answers
71 views

I need your knowledge to make my application, thanks in advance. Well, I'm using Android Studio - Java - Using the Google maps API, I generated several polylines on the map, I also added my current ...
Jose Gabriel Poma Mahuanca's user avatar
0 votes
1 answer
186 views

My script shows a polyline between several markers. An additional marker (green circle) should visualize the distance already travelled. The script works, but on high zoom-levels (12-15) the marker ...
flyte321's user avatar
  • 420
0 votes
1 answer
790 views

how to draw polyline (with routes, not just straight line) with google maps flutter between 2 exact points , currently there is a google api that returns directions/routes for polylines but it takes ...
Rehan's user avatar
  • 182
0 votes
0 answers
158 views

I want to calculate the minimum distance between a point and a polyline with JavaScript and TurfJS. I can use the pointToLineDistance function for that, as follows: var pt = turf.point([0, 0]); var ...
Mateus Riff's user avatar
1 vote
0 answers
121 views

I am trying to show directions on google map. I am getting correct directions data but direction renderer only showing origin and destination markers but polyline or precisely route is missing between ...
Ahmad Hassan's user avatar
0 votes
1 answer
97 views

I'm using basic animation example from google-maps-docs. function initMap(): void { const map = new google.maps.Map( document.getElementById("map") as HTMLElement, { center: {...
Ankit.Z's user avatar
  • 768
-3 votes
1 answer
154 views

I am trying to add multiple polylines to the following sample and if i do so it is drawing the latest polyline and removing the old one. I know it can be done while loading the map. I have to use the ...
Abhi's user avatar
  • 11
-1 votes
1 answer
149 views

Is there any way to keep the map labels with street names and POIs under GMSOverlays like GMSPolygons and GMSPolylines? I have tried with different Zindex but to no vail. This is what I get: But as ...
Victor Alonso Barberan's user avatar
0 votes
0 answers
58 views

I am creating an Android app that allows user can draw a polyline by hand, I search at quite many sources, but it do not have the method that I need. So do you guys have any idea or some method to ...
Quoc Hung's user avatar
1 vote
0 answers
414 views

I'm using the latest Google Maps Android SDK: implementation 'com.google.android.gms:play-services-maps:18.0.2' This is my method for adding a Polyline to the map return mMap.addPolyline(new ...
woocassh's user avatar
0 votes
1 answer
932 views

I want a tracking line behind my location pointer which is moving to draw a it, so that we can see the route the person takes enter image description here public class Activity2 extends ...
Murali Dharan's user avatar
0 votes
2 answers
2k views

I am creating a simple navigation application using GoogleMap. When the user set the start location and destination location I am drawing the path using polylines. If the user deviate from the path, I ...
Janaka's user avatar
  • 2,835
0 votes
1 answer
189 views

I'm trying to find the point along a Google Maps API Directions route given a distance from the starting point. I have my code working and it gives me very accurate results most of the time. However ...
OOPS Studio's user avatar
0 votes
0 answers
171 views

I am building flutter app and wants to achieve enter and exit of user location from multiple polyline. I wanted the fast way to know to which polyline user entered or exit from multiple polylines. I ...
Kirit Patel's user avatar
0 votes
1 answer
1k views

I have been playing around with the Strava developer API a bit and been building a basic React app to fetch soem Starva activites and display it in a list. Repo can be found here. I have a map that ...
TResponse's user avatar
  • 4,153
-2 votes
1 answer
1k views

I am using Google Maps API JavaScript. My use case is I need to plot coordinates (lat, lng) on maps (create markers) and join them through polyline. The co-ordinates will be very close to each other ...
sbv's user avatar
  • 3
1 vote
0 answers
75 views

i working in small project that use google map 90% so in google map i would like to do a lot of polyline and filter on it . that the issue im try to figer it right now . any idea to help please i ...
radhouani mohanad's user avatar
0 votes
0 answers
37 views

I'm new to using google maps and wanted to use the map to plot routes with waypoints (stopovers/other destinations within the route) on my map in Xamarin Forms. Well, at the moment I have managed to ...
Kudakwashe Mundangepfupfu's user avatar
-2 votes
1 answer
509 views

I used to have a working Google map HTML page saved on my computer, with several years and 100's of tracks displayed with encoded polylines (GPolyline.fromEncoded). Since Google map changes something ...
Julien's user avatar
  • 13
0 votes
1 answer
493 views

Can I retrieve all the coordinates as LatLng that is stored in Firestore from different documents and use the coordinates to build a route using the Polyline in GoogleMap API. Or do I need to save it ...
randomstudent's user avatar
0 votes
1 answer
264 views

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's user avatar
1 vote
1 answer
2k views

I am using google_maps_flutter with flutter_polyline_points packages to load google map and draw polylins between A and B points. the map is loaded and polyline is drew between A and B correctly, but ...
Zia's user avatar
  • 725
1 vote
1 answer
686 views

I want to display several polylines on a GoogleMap and some of them could overlap like in the picture below. (It is possible they don't overlap perfectly). My goal is to obtain a list of polylines ...
daniyelp's user avatar
  • 1,335
0 votes
1 answer
3k views

I have an application with a google map, the application gets my current location, there are two markers on the map, one point of the marker and the polyline are coordinates passed from a previous ...
Adrah Wynfred's user avatar
0 votes
1 answer
289 views

I'm looking to decode an encoded google polyline: `~oia@ However to reverse one of the steps requires reversing the bitwise OR operation, which is destructive. I see it's done here: How to decode ...
AncientSwordRage's user avatar
1 vote
1 answer
466 views

I'm working on an app, similar to uber, didi, etc. I have a problem when making the animations of the vehicles (going from point A to point B), I found this code on Internet and it works quite well: ...
Orlando Lucero's user avatar
1 vote
1 answer
769 views

I am using the Google Maps Flutter package, and my app shows the route that the user has driven with polylines. My problem is that when I change to a new page (e.g. settings page) then change back to ...
noahfoe's user avatar
  • 37
0 votes
0 answers
94 views

mapFragment.getMapAsync { GoogleMap -> gMap = GoogleMap val sensor = "false" val mode = "driving" val routeList = ArrayList<LatLng>() ...
R Suman Radhakrishnan's user avatar
0 votes
1 answer
274 views

override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) val mapFragment = childFragmentManager.findFragmentById(R.id.map) as ...
user15880034's user avatar
2 votes
1 answer
1k views

Problem is that when I draw polylines, they get connected from start and end point which is not supoosed to. I simply decode my polypoints (which are encoded strings from direction api) and then add ...
Muhammad Hamza's user avatar
-2 votes
1 answer
1k views

I am currently plotting multiple lines on a map as part of a project. I have been able to plot multiple polylines on a Google Map with the help of a few tutorials. But, all the polylines are of the ...
Akhil Kintali's user avatar
0 votes
0 answers
353 views

I want to draw the location distance on the map. Then when the user moves the location pin will also move it. I have refer this page. The problem I face is the polyline some time have come out some ...
dipgirl's user avatar
  • 700
3 votes
1 answer
5k views

When i update the polyline code, on location change method, It gives me additional straight line. I want to update my polyline when user move from one source to destination. I am able to create a ...
Shriya Pandya's user avatar
2 votes
2 answers
9k views

I am trying to show multiple sets of different polylines (each set represents one cycling route with its own start and endpoint). There are ten routes in total I am bringing in from a JSON file. The ...
Daniel Mintz's user avatar
0 votes
2 answers
4k views

I have implemented google maps in my app and there are several points i need to mark on the map. I was able to mark them with markers but the problem i am facing is trying to draw the path between all ...
Zyfe3r's user avatar
  • 663
0 votes
1 answer
314 views

Here is the example given in the Flutter document of flutter_polyline_point import 'package:flutter/material.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:...
sushree soma mohanty's user avatar
0 votes
0 answers
105 views

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 ...
kAnGeL's user avatar
  • 903
0 votes
0 answers
212 views

This is my current map and what I want. We see in blue the current lines drawn, and in red those expected. I want the user's trips to follow the road and not get out. I have no clue on how to proceed. ...
GabrielSweb's user avatar
0 votes
1 answer
959 views

GSMapView in iOS has different functionality to overlay the polyline on the Google map. Is there a way to show the markers at the start and end of the polyline? A Polyline has points that are nothing ...
Satyam's user avatar
  • 15.9k

1
2 3 4 5
10