Skip to content

Commit

Permalink
Add render test
Browse files Browse the repository at this point in the history
  • Loading branch information
zmiao committed Feb 27, 2020
1 parent b422b32 commit 5783244
Show file tree
Hide file tree
Showing 2 changed files with 281 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,281 @@
{
"version": 8,
"metadata": {
"test": {
"width": 300,
"height": 200
}
},
"zoom": 3,
"center": [
-20,
-19.55
],
"sources": {
"line": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
-25.13671875,
-20.879342971957897
],
[
-24.873046874999996,
-18.22935133838667
],
[
-22.412109375,
-17.72775860985227
],
[
-19.6875,
-17.560246503294888
],
[
-18.80859375,
-15.453680224345835
],
[
-16.787109375,
-15.876809064146757
],
[
-14.853515625,
-18.396230138028812
],
[
-15.99609375,
-20.879342971957897
],
[
-14.326171874999998,
-22.350075806124853
],
[
-12.041015625,
-21.207458730482642
],
[
-12.480468749999998,
-19.062117883514652
],
[
-13.974609375,
-16.8886597873816
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
-23.8623046875,
-22.43134015636061
],
[
-15.99609375,
-23.039297747769726
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
-19.951171875,
-25.045792240303435
],
[
-21.357421875,
-13.410994034321702
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
-25.5322265625,
-25.28443774698303
],
[
-16.435546875,
-25.839449402063185
]
]
}
}
]
}
},
"polygon": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-25.3125,
-14.944784875088372
],
[
-28.4765625,
-18.47960905583197
],
[
-28.652343749999996,
-21.453068633086772
],
[
-24.08203125,
-24.367113562651262
],
[
-20.214843749999996,
-20.13847031245114
],
[
-17.75390625,
-19.31114335506464
],
[
-17.05078125,
-24.846565348219734
],
[
-10.72265625,
-24.846565348219734
],
[
-10.8984375,
-18.312810846425442
],
[
-15.468749999999998,
-14.264383087562637
],
[
-25.3125,
-14.944784875088372
]
]
]
}
}
]
}
}
},
"layers": [
{
"id": "border",
"type": "fill",
"source": "polygon",
"paint": {
"fill-color": "black",
"fill-opacity": 0.5
}
},
{
"id": "draw",
"type": "line",
"source": "line",
"paint": {
"line-color": [
"case",
[
"within",
{
"type": "Polygon",
"coordinates": [
[
[
-25.3125,
-14.944784875088372
],
[
-28.4765625,
-18.47960905583197
],
[
-28.652343749999996,
-21.453068633086772
],
[
-24.08203125,
-24.367113562651262
],
[
-20.214843749999996,
-20.13847031245114
],
[
-17.75390625,
-19.31114335506464
],
[
-17.05078125,
-24.846565348219734
],
[
-10.72265625,
-24.846565348219734
],
[
-10.8984375,
-18.312810846425442
],
[
-15.468749999999998,
-14.264383087562637
],
[
-25.3125,
-14.944784875088372
]
]
]
}
],
"red",
"blue"
]
}
},
{
"id": "circle",
"type": "circle",
"source": "line",
"paint": {
"circle-color": "yellow",
"circle-radius": 2
}
}
]
}

0 comments on commit 5783244

Please sign in to comment.