Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Polyline rendering on Samsung Galaxy Trend Plus #4494

Closed

Description

@danswick

Per a help request:


We have some issue drawing a polyline. It works on all devices we tested, except a Samsung Galaxy Trend Plus (GT-S7580) with Android 4.2.2 and we are using the 4.0.0-beta2 version of Mapbox. In the previous Mapbox version (3.2) we had the same problem.

If we zoom in the map, we can see a portion of the polyline (please see the attached screenshots). As you can see, the markers are correctly drawn.

image
image

This is the source code:

PolylineOptions options = new PolylineOptions();
  for(Point point : route.getJsonpoints()){
    for(PointLatLng latLng : point.getPath()){
      options.add(new LatLng(latLng.getLat(), latLng.getLng()));
  }
}
options.color(ContextCompat.getColor(getContext(), R.color.path_color));
options.width(15);

map.addPolyline(options);

cc @bleege

Activity

  1. added
    Android
    on Mar 30, 2016
  2. cammace commented on Nov 9, 2016

    @cammace
    Contributor

    Is there a way we could test this using the latest SDK beta version 4.2.0-beta.4 @danswick? Never seen this issue and with runtime styling there might be a workaround now.

  3. danswick commented on Nov 9, 2016

    @danswick
    ContributorAuthor

    We haven't been able to confirm this issue. Closing for now. We can reopen if there are future reports.

  4. jonbe242 commented on Dec 1, 2016

    @jonbe242

    We see this issue too on this device. Not strictly the same problem, though, but more generic. The device draws NO lines at all in the map, no matter how wide they are styled. Tested with MBGL from this spring and from master-branch about a month ago.

    How can we help to pinpoint the issue?

    Screenshot from Samsung device:
    image

    Screenshot from Nexus 5X device:
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions