Skip to content

Wide Vector drawing issue #1629

Description

@akovalov

We have a GeoJSON that has lines, all lines are drawn OK, except very long ones from Europe to Peru. Please check the video how it is being drawn.

MaplyVectorStyleSimpleLinear subclass is used.

Style is simple:
kMaplySelectable: true,
kMaplyEnable: true
kMaplyDrawPriority: 100001022
kMaplyColor: some color
kMaplyVecWidth: 2

Here is how these lines are added inside the Vector Style class.

if let compObj = super.viewC.addWideVectors([vecObj], desc: styleDesc, mode: .current) {

                tileData.addComponentObject(compObj)
                newCompObjs.append(compObj)
            }

GeoJSON geometry is like this

"geometry": {
                    "coordinates": [
                        [
                            -77.0482,
                            -12.0386
                        ],
                        [
                            18.8348,
                            45.808
                        ]
                    ],
                    "type": "LineString"
                },

How can it be fixed? Thanks

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions