Skip to content
Snippets Groups Projects
Commit 40829617 authored by Teemu Ikonen's avatar Teemu Ikonen
Browse files

New upstream version 2.1.1

parent 3eb21baf
No related branches found
No related merge requests found
Summary: Mapbox GL Native QML plugin
Name: mapboxgl-qml
Version: 2.1.0
Version: 2.1.1
Release: 1%{?dist}
License: LGPLv3
Group: Libraries/Geosciences
......
......@@ -780,6 +780,17 @@ void QQuickItemMapboxGL::updateSourceLine(const QString &sourceID, const QVarian
{
QVariantList coor;
// Mapbox geojson-hpp requires at least 2 points for a line. As a result, source addition or update
// will fail unless it is imported as an empty feature - done by the point import.
// Related issue: https://github.com/rinigus/pure-maps/issues/639
if (coordinates.size() < 2)
{
QVariantList names;
for (int i=0; i < coordinates.size(); ++i) names.append(name);
updateSourcePoints(sourceID, coordinates, names);
return;
}
for (int i = 0; i < coordinates.size(); ++i)
{
QGeoCoordinate c = coordinates[i].value<QGeoCoordinate>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment