Skip to content

Commit 1615692

Browse files
tuncbkoseTunç Başar Köse
andauthored
doc: fix some typos (#490)
Co-authored-by: Tunç Başar Köse <tunc.kose@relevant-digital.com>
1 parent f01974b commit 1615692

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

en/option/component/geo-common.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ Note: `stream` is not required in the `projection`.
174174

175175
#${prefix} aspectScale(number) = 0.75
176176

177-
Used to scale aspect of geo. It will be ignored if [proejction](~${componentNameInLink}.projection) is set.
177+
Used to scale aspect of geo. It will be ignored if [projection](~${componentNameInLink}.projection) is set.
178178

179-
The final calculated `pixelWidth` and `pixelHeight` of the map will satisfy `pixelWidth / pixelHeight = lngSpan / latSpan * aspectScale` (assume [proejction](~${componentNameInLink}.projection) is not specified, and [preserveAspect](~${componentNameInLink}.preserveAspect) is truthy).
179+
The final calculated `pixelWidth` and `pixelHeight` of the map will satisfy `pixelWidth / pixelHeight = lngSpan / latSpan * aspectScale` (assume [projection](~${componentNameInLink}.projection) is not specified, and [preserveAspect](~${componentNameInLink}.preserveAspect) is truthy).
180180

181-
If no [proejction](~${componentNameInLink}.projection) is applied, the latitudes and longitudes in GeoJSON are linearly mapped to pixel coordinates diarectly. `aspectScale` offers a simple way to visually compensates for the distortion caused by the fact that the longitudinal spacing shrinks as latitude increases. For example, an `aspectScale` can be roughly calculated as `aspectScale = Math.cos(center_latitude * Maht.PI / 180)`, which is similar to a sinusoidal projection.
181+
If no [projection](~${componentNameInLink}.projection) is applied, the latitudes and longitudes in GeoJSON are linearly mapped to pixel coordinates diarectly. `aspectScale` offers a simple way to visually compensates for the distortion caused by the fact that the longitudinal spacing shrinks as latitude increases. For example, an `aspectScale` can be roughly calculated as `aspectScale = Math.cos(center_latitude * Maht.PI / 180)`, which is similar to a sinusoidal projection.
182182

183183
See [example](${galleryEditorPath}geo-graph&edit=1&reset=1).
184184

en/option/partial/view-coord-sys.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
Notice: the values in `center` are based on the original layout coordinates, rather than the viewport (canvas) coordinates. If you intend to adjust the position and size of ${sourceName} by viewport coordinates, use [${componentNameInLink}.left](~${componentNameInLink}.left) / [.right](~${componentNameInLink}.right) / [.top](~${componentNameInLink}.top) / [.bottom](~${componentNameInLink}.bottom) / [.width](~${componentNameInLink}.width) / [.height](~${componentNameInLink}.height) {{ if: ${isGeoOrMap} }} or [${componentNameInLink}.layoutCenter](~${componentNameInLink}.layoutCenter) / [layoutSize](~${componentNameInLink}.layoutSize){{ /if }}.
3030

3131
{{ if: ${isGeoOrMap} }}
32-
`center` is in longitude and latitude by default. Use the projected coordinates if [proejction](~${componentNameInLink}.projection) is set.
32+
`center` is in longitude and latitude by default. Use the projected coordinates if [projection](~${componentNameInLink}.projection) is set.
3333

3434
Example:
3535

@@ -72,7 +72,7 @@ If using absolute numbers in `center`:
7272
Using absolute numbers in `center` is unfeasible, as the absolute numbers typically represent the original coordinates, which is calculated by auto-layout strategy and is not user-determinable.
7373
{{ /if }}
7474

75-
A percentage string can also be used in `center`, like `'30%'`, based on the bounding rect{{ if: ${isGeoOrMap} }}(determined min/max latitude/longitude, or min/max projected coordinates if [proejction](~${componentNameInLink}.projection) is set){{ /if }}. You can use `'0%'` to place the top or left of bounding rect to the center of the viewport (typically, canvas), or use `'100%'` to place the right or bottom to the center of the viewport, or use `'50%'` to place the entire ${sourceName} at the the center of the viewport.
75+
A percentage string can also be used in `center`, like `'30%'`, based on the bounding rect{{ if: ${isGeoOrMap} }}(determined min/max latitude/longitude, or min/max projected coordinates if [projection](~${componentNameInLink}.projection) is set){{ /if }}. You can use `'0%'` to place the top or left of bounding rect to the center of the viewport (typically, canvas), or use `'100%'` to place the right or bottom to the center of the viewport, or use `'50%'` to place the entire ${sourceName} at the the center of the viewport.
7676
For example:
7777
```ts
7878
center: [115, '30%']

zh/option/component/geo-common.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ series: {
172172

173173
#${prefix} aspectScale(number) = 0.75
174174

175-
这个参数用于 scale 地图的长宽比。如果设置了 [proejction](~${componentNameInLink}.projection) 则无效。
175+
这个参数用于 scale 地图的长宽比。如果设置了 [projection](~${componentNameInLink}.projection) 则无效。
176176

177-
地图最终计算得到的 `pixelWidth``pixelHeight` 将满足以下关系:`pixelWidth / pixelHeight = lngSpan / latSpan * aspectScale`(假设未指定 [proejction](~${componentNameInLink}.projection),且 [preserveAspect](~${componentNameInLink}.preserveAspect) 设为保持长宽比)。
177+
地图最终计算得到的 `pixelWidth``pixelHeight` 将满足以下关系:`pixelWidth / pixelHeight = lngSpan / latSpan * aspectScale`(假设未指定 [projection](~${componentNameInLink}.projection),且 [preserveAspect](~${componentNameInLink}.preserveAspect) 设为保持长宽比)。
178178

179-
当不使用真正的投影公式([proejction](~${componentNameInLink}.projection))时,GeoJSON 里的经纬度会被线性映射到像素坐标。`aspectScale` 提供了一种简单方式,用于视觉上补偿这种映射所造成的形变(由于地球是球形,经度对应的物理尺寸在高纬度地区会收缩)。例如,`aspectScale` 可以通过以下公式粗略计算:`aspectScale = Math.cos(center_latitude * Math.PI / 180)`,这与正弦投影(sinusoidal projection)相似。
179+
当不使用真正的投影公式([projection](~${componentNameInLink}.projection))时,GeoJSON 里的经纬度会被线性映射到像素坐标。`aspectScale` 提供了一种简单方式,用于视觉上补偿这种映射所造成的形变(由于地球是球形,经度对应的物理尺寸在高纬度地区会收缩)。例如,`aspectScale` 可以通过以下公式粗略计算:`aspectScale = Math.cos(center_latitude * Math.PI / 180)`,这与正弦投影(sinusoidal projection)相似。
180180

181181
参见 [示例](${galleryEditorPath}geo-graph&edit=1&reset=1)
182182

zh/option/partial/view-coord-sys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
{{ if: ${isGeoOrMap} }}
33-
`center` 默认使用原始坐标(经纬度)。如果设置了 [proejction](~${componentNameInLink}.projection) 则用投影后的坐标。
33+
`center` 默认使用原始坐标(经纬度)。如果设置了 [projection](~${componentNameInLink}.projection) 则用投影后的坐标。
3434

3535
示例:
3636
```ts

0 commit comments

Comments
 (0)