polyline Questions

4

Solved

I have routes as Google Maps Polylines in my project (an example, http://rutasgdl.com/rutas/626-2 ) and I want to add direction arrows to the routes. I want something like this (sadly, it is for Go...
Reitareiter asked 2/4, 2011 at 6:32

2

I have polyline in my map. I want to know the pixel (screen) xy-coordinates, when user clicks the polyline. Click event only returns the LatLng object, so does anyone have a clue how to get the pix...

4

Solved

If there is a polyline on googlemap and a click is performed on the map, then how can I check whether that click was on polyline or somewhere else? Polyline line = googleMap.addPolyline(new Polyli...
Antionetteantioxidant asked 8/8, 2014 at 7:13

8

Solved

I am drawing a route between two points in a map. I receive the points this way: StringBuilder urlString = new StringBuilder(); urlString.append("http://maps.googleapis.com/maps/api/direction...
Pantheas asked 10/4, 2013 at 11:41

2

What are "levels" in polyline encoding/decoding, and exactly how do they relate to map zoom levels in Google Maps API v3 or Android Maps API v2? The only description I can find is from the Interac...

1

I am trying to draw (and frequently update) a Polyline with the iOS Metal framework and Swift 4 / iOS 11 / XCode 9. For the final project I want to be able to "draw" a line with my finger, capturin...
Extracellular asked 17/11, 2017 at 20:43

1

Solved

I'm looking for a way to offset an arbitrary curve defined through xy-coordinates in one direction (in R). I can use the {polyclip} package to offset the curve in two directions. library(polyclip) ...
Accurate asked 11/11, 2021 at 22:9

1

I have an encoded polyline created by the Mapbox javascript API (https://github.com/mapbox/polyline) and I would like to decode this polyline into a list of coordinates (or even just an MGLShape) o...
Drupe asked 23/9, 2021 at 0:58

1

Solved

expo version : sdk42 react-native-maps: 0.28 and 0.27.1 both using react-native-maps-directions here is code <MapView provider={PROVIDER_GOOGLE} // remove if not using Google Maps style={styl...
Guernsey asked 9/7, 2021 at 17:5

4

Solved

I'm trying to use the Google directions API to show directions on my mapview but I am having difficulties getting the data from the JSON response. I can get the "levels" and "points" strings but ca...
Tressietressure asked 15/7, 2011 at 14:18

3

this is my code for drawing first Line, for another line with another color how can i do ????? func mapView(mapView : MKMapView! , rendererForOverlay overlay: MKOverlay!) ->MKOverlayRenderer! ...
Stonebroke asked 20/1, 2015 at 12:20

4

Solved

When I plot my polyline on Map from point A -> B, I have a requirement to draw the polyline with animation. As if from A-> B the polyline keeps on drawing. I have used below link for reference: h...
Fibro asked 8/4, 2017 at 10:16

1

I am trying to add dashed polylines to the google map but the pattern property doesn't seem to work. Below you can see the method that creates the polyline, the pattern is set to dash with 5px gap,...
Debbidebbie asked 15/1, 2020 at 14:10

2

Solved

Uber app has a polyline that is curved, and even includes a shadow. The shadow may be just a black with transparent polyline connecting two points. That is easy. But the second polyline with curve,...
Stivers asked 27/4, 2017 at 15:21

3

Solved

I am working on an application that is using svg move/rotate/zoom functionalities. I'm programming the back-end in Laravel and the front-end is using html/css/javascript. I've seen on the web that ...
Tequilater asked 21/12, 2015 at 16:10

3

Solved

I'm trying to get an understanding of how to draw polylines using Swift. I've looked at the documentation, referenced some tutorials, and checked out some other SO posts, but I still can't get the ...
Forbiddance asked 19/12, 2014 at 2:28

2

Solved

I'm trying to draw a tile overlay and a poly line to a google map. I would like the poly line to be rendered on top of the tile overlay so it can be seen. Currently it's drawn under the tile overla...
Nikolos asked 11/4, 2014 at 6:14

3

In android map application, it shows tool-tip window for multiple route, the same way google map also shows that window. I was wondering whether that is a custom marker or a infoWindow over poly-li...
Formalism asked 3/11, 2016 at 6:2

2

Solved

I need to find nearest point from given CLLocationCoordinate2D on array of GMSPolyline. I can convert this to GMSPath if that's better. Is there any ready method (or any repository) for such calcul...
Freehanded asked 19/1, 2015 at 11:11

2

Solved

I'm using leaflet for show raw itinerary to go to some markers. I'm showing my itinerary with a leaflet polyline. But I would like to be able to How to hide and show a polyline in leaflet ? I ca...
Sayres asked 17/10, 2013 at 9:4

4

Solved

I've got a 2D closed polyline, which is reasonably smooth. The vertices that define the polyline however are not spaced equally. Sometimes two will be very close, sometimes as many as four will be ...
Hildick asked 23/9, 2009 at 0:36

2

Solved

I am currently converting an MKPolyline to a BezierPath then a CAShapeLayer then adding the layer as a sublayer to a UIView. Currently struggling to ensure the path is not drawn outside the bounds ...
Felishafelita asked 7/2, 2017 at 9:13

4

How Can I Draw Arc Polyline in Google Map ? I already used this code to create curved Polyline. Here is the method to draw curved Polyline: private void showCurvedPolyline (LatLng p1, LatLng p2, do...

2

I was looking for a solution to this problem on stackoverflow but since I couldn't find the accurate solution I ended up solving it myself and post it here, hope it help. Google Maps provides you ...
Raymonderaymonds asked 8/7, 2015 at 23:19

2

Solved

I'm working on an application that records strokes, which you paint with a pointing device. In the image above, I've drawn a single stroke, which contains 453 data points. My goal would be to dr...
Snakeroot asked 2/7, 2013 at 12:33

© 2022 - 2024 — McMap. All rights reserved.