-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'circle-pitch-alignment' property.
Follows model of 'text-pitch-alignment'. Requested in issue #4120.
- Loading branch information
Showing
11 changed files
with
246 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+3.47 KB
test/integration/render-tests/circle-pitch-alignment/map-scale-map/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions
53
test/integration/render-tests/circle-pitch-alignment/map-scale-map/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"ignored": { | ||
"native": "https://github.com/mapbox/mapbox-gl-native/issues/9349" | ||
}, | ||
"width": 512, | ||
"height": 512 | ||
} | ||
}, | ||
"center": [ | ||
0, | ||
0 | ||
], | ||
"zoom": 0, | ||
"pitch": 90, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "MultiPoint", | ||
"coordinates": [ | ||
[ | ||
0, | ||
0 | ||
], | ||
[ | ||
0, | ||
60 | ||
], | ||
[ | ||
0, | ||
-60 | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "circles", | ||
"type": "circle", | ||
"source": "geojson", | ||
"paint": { | ||
"circle-radius": 40, | ||
"circle-color": "blue", | ||
"circle-pitch-scale": "map", | ||
"circle-pitch-alignment": "map" | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+3.47 KB
...integration/render-tests/circle-pitch-alignment/map-scale-viewport/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions
53
test/integration/render-tests/circle-pitch-alignment/map-scale-viewport/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"ignored": { | ||
"native": "https://github.com/mapbox/mapbox-gl-native/issues/9349" | ||
}, | ||
"width": 512, | ||
"height": 512 | ||
} | ||
}, | ||
"center": [ | ||
0, | ||
0 | ||
], | ||
"zoom": 0, | ||
"pitch": 90, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "MultiPoint", | ||
"coordinates": [ | ||
[ | ||
0, | ||
0 | ||
], | ||
[ | ||
0, | ||
60 | ||
], | ||
[ | ||
0, | ||
-60 | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "circles", | ||
"type": "circle", | ||
"source": "geojson", | ||
"paint": { | ||
"circle-radius": 40, | ||
"circle-color": "blue", | ||
"circle-pitch-scale": "viewport", | ||
"circle-pitch-alignment": "map" | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+4.06 KB
...integration/render-tests/circle-pitch-alignment/viewport-scale-map/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions
53
test/integration/render-tests/circle-pitch-alignment/viewport-scale-map/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"ignored": { | ||
"native": "https://github.com/mapbox/mapbox-gl-native/issues/9349" | ||
}, | ||
"width": 512, | ||
"height": 512 | ||
} | ||
}, | ||
"center": [ | ||
0, | ||
0 | ||
], | ||
"zoom": 0, | ||
"pitch": 90, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "MultiPoint", | ||
"coordinates": [ | ||
[ | ||
0, | ||
0 | ||
], | ||
[ | ||
0, | ||
60 | ||
], | ||
[ | ||
0, | ||
-60 | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "circles", | ||
"type": "circle", | ||
"source": "geojson", | ||
"paint": { | ||
"circle-radius": 40, | ||
"circle-color": "blue", | ||
"circle-pitch-scale": "map", | ||
"circle-pitch-alignment": "viewport" | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+3.99 KB
...ration/render-tests/circle-pitch-alignment/viewport-scale-viewport/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions
53
test/integration/render-tests/circle-pitch-alignment/viewport-scale-viewport/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"ignored": { | ||
"native": "https://github.com/mapbox/mapbox-gl-native/issues/9349" | ||
}, | ||
"width": 512, | ||
"height": 512 | ||
} | ||
}, | ||
"center": [ | ||
0, | ||
0 | ||
], | ||
"zoom": 0, | ||
"pitch": 90, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "MultiPoint", | ||
"coordinates": [ | ||
[ | ||
0, | ||
0 | ||
], | ||
[ | ||
0, | ||
60 | ||
], | ||
[ | ||
0, | ||
-60 | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "circles", | ||
"type": "circle", | ||
"source": "geojson", | ||
"paint": { | ||
"circle-radius": 40, | ||
"circle-color": "blue", | ||
"circle-pitch-scale": "viewport", | ||
"circle-pitch-alignment": "viewport" | ||
} | ||
} | ||
] | ||
} |