[-]
[+]
|
Changed |
_service:tar_git:mapbox-gl-qml.spec
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -2,7 +2,7 @@
<service name="tar_git">
<param name="url">https://github.com/rinigus/mapbox-gl-qml.git</param>
<param name="branch">master</param>
- <param name="revision">2.1.0</param>
+ <param name="revision">2.1.1</param>
<param name="debian">N</param>
<param name="dumb">N</param>
</service>
|
[-]
[+]
|
Changed |
_service:tar_git:mapboxgl-qml-2.1.1.tar.gz/src/qquickitemmapboxgl.cpp
^
|
@@ -780,6 +780,17 @@
{
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>();
|