cordova-plugin-googlemaps icon indicating copy to clipboard operation
cordova-plugin-googlemaps copied to clipboard

Polylines are not making curves in the streets

Open manuvalentim opened this issue 9 years ago • 1 comments

I'm submitting a ... (check one with "x") [ ] question [X] any problem or bug report [ ] feature request

If you choose 'problem or bug report', please select OS: (check one with "x") [X ] Android [ ] iOS

cordova information: (run $> cordova plugin list) Cordova 7.0.1 "cordova-plugin-googlemaps": "^2.1.1",

Current behavior: I'm having trouble representing polyline on the map when I need to do "curves" on the streets. screenshot_1

ezgif com-video-to-gif

Expected behavior: 8a8041e3-c0c2-4058-86f0-7c6c2c2f1dcf 0

Related code, data or error log (please format your code or data):

let polylineOptions = {
                points: locations,
                'color': color,
                'width': 4,
                'geodesic': true
              };

              this.map.addPolyline(polylineOptions).then((polyline) => {
                this.polyline = polyline;
}

manuvalentim avatar Nov 28 '17 12:11 manuvalentim

There is no feature in native APIs. Please request to Google.

Or you need to pay to Google for the Snap to Road API. https://developers.google.com/maps/documentation/roads/snap

wf9a5m75 avatar Nov 28 '17 14:11 wf9a5m75