Results 1 to 3 of 3

Thread: [Android] SKPolyline and other Objects

  1. #1
    Etablierter skobbler
    Join Date
    08.01.2016
    Location
    Lübeck
    Posts
    20

    [Android] SKPolyline and other Objects

    Hey,

    iam adding a line to the map via

    Code:
            SKPolyline polyline = new SKPolyline();
            List nodes = new ArrayList();
            nodes = new ArrayList();
            nodes.add(new SKCoordinate(edge.getFrom().getY(), edge.getFrom().getX()));
            nodes.add(new SKCoordinate(edge.getTo().getY(), edge.getTo().getX()));
            polyline.setNodes(nodes);
            polyline.setColor(new float[]{0f, 0f, 0.5f, 1f});
            polyline.setOutlineColor(new float[]{0f, 0f, 1f, 1f});
            polyline.setOutlineSize(1);
            polyline.setIdentifier(id);
            polyline.setOutlineDottedPixelsSolid(1);
            polyline.setOutlineDottedPixelsSkip(1);
            mapView.addPolyline(polyline);
    I get a very thick line at the map at maximum zoom level (19) (see attachment) beside my current position with heading from the magnetometer.

    But at the map i can see very thin building edges. Is there a way to get such lines? Or is it possible to increase the maximum zoom level?

    Best regards,
    Patrick
    Attached Images Attached Images

  2. #2
    Etablierter skobbler
    Join Date
    08.01.2016
    Location
    Lübeck
    Posts
    20
    Just forgot two lines:

    Code:
            polyline.setLineSize(1);
            polyline.setOutlineSize(0);

  3. #3
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Thanks for updating the thread with the solution.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •