Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shape.loadPoints is not a function? #465

Open
xeroxstar opened this issue Apr 3, 2021 · 0 comments
Open

shape.loadPoints is not a function? #465

xeroxstar opened this issue Apr 3, 2021 · 0 comments

Comments

@xeroxstar
Copy link

xeroxstar commented Apr 3, 2021

Why do i get this error when i am trying to draw polyline on the map?

System.err: An uncaught Exception occurred on "main" thread.
System.err: Calling js method onItemClick failed
System.err: TypeError: shape.loadPoints is not a function
let shape = new com.google.android.gms.maps.model.PolylineOptions();
item.directions.forEach(direction => {
            shape.add(new com.google.android.gms.maps.model.LatLng(direction[0],direction[1]))
});
global.account.getViewById('map').addPolyline(shape);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant