Skip to content

Commit

Permalink
Merge pull request #35 from devilop3rz/polylinefix
Browse files Browse the repository at this point in the history
Fixed error adding polylines to map
  • Loading branch information
EddyVerbruggen authored Sep 22, 2016
2 parents 6a80f13 + 08737b0 commit 35e5f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapbox.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ mapbox.addPolygon = function (arg) {
var point = points[p];
polygonOptions.add(new com.mapbox.mapboxsdk.geometry.LatLng(point.lat, point.lng));
}
mapbox.mapView.addPolygon(polygonOptions);
mapbox.mapboxMap.addPolygon(polygonOptions);
resolve();
} catch (ex) {
console.log("Error in mapbox.addPolygon: " + ex);
Expand All @@ -474,7 +474,7 @@ mapbox.addPolyline = function (arg) {
var point = points[p];
polylineOptions.add(new com.mapbox.mapboxsdk.geometry.LatLng(point.lat, point.lng));
}
mapbox.mapView.addPolyline(polylineOptions);
mapbox.mapboxMap.addPolyline(polylineOptions);
resolve();
} catch (ex) {
console.log("Error in mapbox.addPolyline: " + ex);
Expand Down

0 comments on commit 35e5f5d

Please sign in to comment.