Skip to content

Commit f5a6b86

Browse files
committed
style: Make sure pre-commit run -a is satisfied
1 parent ea7d29b commit f5a6b86

File tree

101 files changed

+705
-351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+705
-351
lines changed

examples/animation/example.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"title": "Animate Features",
3-
"exampleCss": ["main.css"],
4-
"exampleJs": ["main.js"],
3+
"exampleCss": [
4+
"main.css"
5+
],
6+
"exampleJs": [
7+
"main.js"
8+
],
59
"about": {
610
"text": "This example shows how to animate features by updating styles."
711
}

examples/annotations/example.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"title": "Annotation Layer",
3-
"exampleCss": ["main.css"],
4-
"exampleJs": ["main.js"],
3+
"exampleCss": [
4+
"main.css"
5+
],
6+
"exampleJs": [
7+
"main.js"
8+
],
59
"thumbquery": "labels=false&geojson=%7B%22type%22%3A%22FeatureCollection%22%2C%22features%22%3A%5B%7B%22type%22%3A%22Feature%22%2C%22geometry%22%3A%7B%22type%22%3A%22Point%22%2C%22coordinates%22%3A%5B-118.8726%2C36.6962%5D%7D%2C%22properties%22%3A%7B%22annotationType%22%3A%22point%22%2C%22fillColor%22%3A%22%2300ff00%22%2C%22fillOpacity%22%3A0.25%2C%22radius%22%3A10%2C%22strokeWidth%22%3A3%7D%7D%2C%7B%22type%22%3A%22Feature%22%2C%22geometry%22%3A%7B%22type%22%3A%22Point%22%2C%22coordinates%22%3A%5B-119.7193%2C36.7762%5D%7D%2C%22properties%22%3A%7B%22annotationType%22%3A%22point%22%2C%22fillColor%22%3A%22%2300ff00%22%2C%22fillOpacity%22%3A0.25%2C%22radius%22%3A10%2C%22strokeWidth%22%3A3%7D%7D%2C%7B%22type%22%3A%22Feature%22%2C%22geometry%22%3A%7B%22type%22%3A%22Polygon%22%2C%22coordinates%22%3A%5B%5B%5B-118.9165%2C36.5975%5D%2C%5B-118.8952%2C36.5788%5D%2C%5B-118.9068%2C36.5624%5D%2C%5B-118.8786%2C36.5398%5D%2C%5B-118.8796%2C36.4883%5D%2C%5B-118.7641%2C36.4867%5D%2C%5B-118.7689%2C36.3508%5D%2C%5B-118.7340%2C36.3453%5D%2C%5B-118.7116%2C36.3414%5D%2C%5B-118.6912%2C36.3531%5D%2C%5B-118.6893%2C36.3938%5D%2C%5B-118.5873%2C36.3953%5D%2C%5B-118.5504%2C36.4078%5D%2C%5B-118.5397%2C36.3899%5D%2C%5B-118.4825%2C36.3578%5D%2C%5B-118.4922%2C36.3476%5D%2C%5B-118.4815%2C36.3265%5D%2C%5B-118.4504%2C36.3085%5D%2C%5B-118.4135%2C36.3343%5D%2C%5B-118.3844%2C36.3633%5D%2C%5B-118.3737%2C36.3860%5D%2C%5B-118.3601%2C36.4383%5D%2C%5B-118.3319%2C36.4493%5D%2C%5B-118.2475%2C36.4828%5D%2C%5B-118.2358%2C36.4969%5D%2C%5B-118.2426%2C36.5242%5D%2C%5B-118.2630%2C36.5507%5D%2C%5B-118.2892%2C36.5554%5D%2C%5B-118.2882%2C36.5850%5D%2C%5B-118.2766%2C36.5960%5D%2C%5B-118.2873%2C36.6053%5D%2C%5B-118.3193%2C36.6287%5D%2C%5B-118.3368%2C36.6591%5D%2C%5B-118.3300%2C36.6645%5D%2C%5B-118.3397%2C36.6739%5D%2C%5B-118.3465%2C36.6731%5D%2C%5B-118.3815%2C36.7019%5D%2C%5B-118.4310%2C36.6957%5D%2C%5B-118.4320%2C36.6801%5D%2C%5B-118.4465%2C36.6863%5D%2C%5B-118.4747%2C36.6684%5D%2C%5B-118.4747%2C36.6529%5D%2C%5B-118.4863%2C36.6490%5D%2C%5B-118.4834%2C36.6365%5D%2C%5B-118.5252%2C36.5983%5D%2C%5B-118.5310%2C36.5936%5D%2C%5B-118.5563%2C36.5983%5D%2C%5B-118.5687%2C36.5967%5D%2C%5B-118.5842%2C36.6045%5D%2C%5B-118.5813%2C36.6139%5D%2C%5B-118.6017%2C36.6108%5D%2C%5B-118.6163%2C36.6279%5D%2C%5B-118.6396%2C36.6388%5D%2C%5B-118.6473%2C36.6318%5D%2C%5B-118.6580%2C36.6326%5D%2C%5B-118.6609%2C36.6396%5D%2C%5B-118.6716%2C36.6373%5D%2C%5B-118.6794%2C36.6357%5D%2C%5B-118.6978%2C36.6404%5D%2C%5B-118.7066%2C36.6645%5D%2C%5B-118.7454%2C36.6786%5D%2C%5B-118.7755%2C36.6786%5D%2C%5B-118.7978%2C36.6770%5D%2C%5B-118.8202%2C36.6684%5D%2C%5B-118.8211%2C36.6599%5D%2C%5B-118.8367%2C36.6505%5D%2C%5B-118.8474%2C36.6513%5D%2C%5B-118.8542%2C36.6419%5D%2C%5B-118.8697%2C36.6334%5D%2C%5B-118.8804%2C36.6225%5D%2C%5B-118.9024%2C36.6209%5D%2C%5B-118.9121%2C36.6084%5D%2C%5B-118.9165%2C36.5975%5D%5D%5D%7D%2C%22properties%22%3A%7B%22annotationType%22%3A%22polygon%22%2C%22fillColor%22%3A%22%2300ff00%22%2C%22fillOpacity%22%3A0.25%2C%22strokeColor%22%3A%22%23000000%22%2C%22strokeWidth%22%3A3%7D%7D%5D%7D",
610
"about": {
711
"text": "This example shows how to add annotations, such as marked rectangles, to a map."

examples/blog-lines/example.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"title": "Blog entry on line drawing",
33
"hideNavbar": true,
4-
"exampleCss": ["main.css"],
5-
"exampleJs": ["main.js"],
4+
"exampleCss": [
5+
"main.css"
6+
],
7+
"exampleJs": [
8+
"main.js"
9+
],
610
"about": {
711
"text": "This is used to show comparisons for the blog post on lines."
812
},

examples/choropleth/example.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"title": "Choropleth plot",
3-
"exampleJs": ["main.js"],
3+
"exampleJs": [
4+
"main.js"
5+
],
46
"about": {
57
"text": "This example shows how to add choropleth features to a map. Choropleths color each region in a set of regions based on a scalar value for each region."
68
}

examples/cluster/example.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"title": "Cluster points",
3-
"exampleCss": ["main.css"],
4-
"exampleJs": ["main.js"],
3+
"exampleCss": [
4+
"main.css"
5+
],
6+
"exampleJs": [
7+
"main.js"
8+
],
59
"about": {
610
"text": "Cluster nearby points on a map."
711
}

examples/color-legend/example.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"title": "Color legends",
3-
"exampleJs": ["main.js"],
3+
"exampleJs": [
4+
"main.js"
5+
],
46
"about": {
57
"text": "This example shows how to create a discrete or continuous color legends."
68
},

examples/contour/example.json

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,33 @@
11
{
22
"title": "Contour plot",
3-
"exampleJs": ["main.js"],
3+
"exampleJs": [
4+
"main.js"
5+
],
46
"about": {
57
"text": "This example shows how to add contour features to a map. Contours color a region based on an array of scalar values. If stepped colors are used, these are called isobands."
68
},
7-
"tests": [{
8-
"description": "contour feature loads small dataset",
9-
"query": "url=../../data/oahu.json",
10-
"wait": ["example.ready"],
11-
"tests": [
12-
"example.contour instanceof geo.contourFeature",
13-
"example.contour._createContours().value.length === 1953"
14-
]
15-
}, {
16-
"description": "contour feature loads dense dataset",
17-
"query": "url=../../data/oahu-dense.json",
18-
"wait": ["example.ready"],
19-
"tests": [
20-
"example.contour instanceof geo.contourFeature",
21-
"example.contour._createContours().value.length === 194770"
22-
]
23-
}]
9+
"tests": [
10+
{
11+
"description": "contour feature loads small dataset",
12+
"query": "url=../../data/oahu.json",
13+
"wait": [
14+
"example.ready"
15+
],
16+
"tests": [
17+
"example.contour instanceof geo.contourFeature",
18+
"example.contour._createContours().value.length === 1953"
19+
]
20+
},
21+
{
22+
"description": "contour feature loads dense dataset",
23+
"query": "url=../../data/oahu-dense.json",
24+
"wait": [
25+
"example.ready"
26+
],
27+
"tests": [
28+
"example.contour instanceof geo.contourFeature",
29+
"example.contour._createContours().value.length === 194770"
30+
]
31+
}
32+
]
2433
}

examples/deepzoom/example.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
{
22
"title": "Deep Zoom tiled image example",
3-
"exampleJs": ["main.js"],
3+
"exampleJs": [
4+
"main.js"
5+
],
46
"about": {
57
"text": "Rendering a tiled image using the Deep Zoom protocol."
68
},
7-
"disable-tests": [{
8-
"description": "data is loaded from the Deep Zoom server",
9-
"idle": ["$('#map.geojs-map').data('data-geojs-map').onIdle"],
10-
"tests": [
11-
"Object.keys($('#map.geojs-map').data('data-geojs-map').layers()[0]._activeTiles).length === 11"
12-
]
13-
}],
9+
"disable-tests": [
10+
{
11+
"description": "data is loaded from the Deep Zoom server",
12+
"idle": [
13+
"$('#map.geojs-map').data('data-geojs-map').onIdle"
14+
],
15+
"tests": [
16+
"Object.keys($('#map.geojs-map').data('data-geojs-map').layers()[0]._activeTiles).length === 11"
17+
]
18+
}
19+
],
1420
"disabled": true
1521
}

examples/dynamicData/example.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"title": "Dynamic Data",
3-
"exampleJs": ["main.js", "clock.js"],
3+
"exampleJs": [
4+
"main.js",
5+
"clock.js"
6+
],
47
"about": {
58
"text": "Rendering data that changes with time."
69
},

examples/flights/example.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
22
"title": "Flight tracking data",
3-
"exampleCss": ["main.css"],
4-
"exampleJs": ["main.js"],
5-
"docJs": ["worker.js"],
3+
"exampleCss": [
4+
"main.css"
5+
],
6+
"exampleJs": [
7+
"main.js"
8+
],
9+
"docJs": [
10+
"worker.js"
11+
],
612
"about": {
713
"text": "Recent flights from The OpenSky Network on an interactive map."
814
},

0 commit comments

Comments
 (0)