|
1 | 1 | import type { DrawModel } from '@/plugins/draw'; |
2 | 2 |
|
3 | | -export const drawCircleExample: DrawModel = { |
4 | | - "type": "Feature", |
5 | | - "properties": { |
6 | | - "center": [ |
| 3 | +export const drawCircleExample: DrawModel = Object.freeze({ |
| 4 | + 'type' : 'Feature', |
| 5 | + 'properties': { |
| 6 | + 'center' : [ |
7 | 7 | 10.010300035650772, |
8 | 8 | 53.55286295947664 |
9 | 9 | ], |
10 | | - "radius": 26158.912849222437, |
11 | | - "meta": "circle", |
12 | | - "minSizeLabel": "TOO SMALL", |
13 | | - "area": 2149756420.251772, |
14 | | - "tooSmall": false |
| 10 | + 'radius' : 26158.912849222437, |
| 11 | + 'meta' : 'circle', |
| 12 | + 'minSizeLabel': 'TOO SMALL', |
| 13 | + 'area' : 2149756420.251772, |
| 14 | + 'tooSmall' : false |
15 | 15 | }, |
16 | | - "geometry": { |
17 | | - "type": "Polygon", |
18 | | - "coordinates": [ |
| 16 | + 'geometry' : { |
| 17 | + 'type' : 'Polygon', |
| 18 | + 'coordinates': [ |
19 | 19 | [ |
20 | 20 | [ |
21 | 21 | 10.010300035650772, |
@@ -280,24 +280,24 @@ export const drawCircleExample: DrawModel = { |
280 | 280 | ] |
281 | 281 | ] |
282 | 282 | } |
283 | | -}; |
| 283 | +}); |
284 | 284 |
|
285 | | -export const drawCircleExample2: DrawModel = { |
286 | | - "type": "Feature", |
287 | | - "properties": { |
288 | | - "center": [ |
| 285 | +export const drawCircleExample2: DrawModel = Object.freeze({ |
| 286 | + 'type' : 'Feature', |
| 287 | + 'properties': { |
| 288 | + 'center' : [ |
289 | 289 | 8.54997026487834, |
290 | 290 | 53.5689240486912 |
291 | 291 | ], |
292 | | - "radius": 26158.912849222437, |
293 | | - "meta": "circle", |
294 | | - "minSizeLabel": "TOO SMALL", |
295 | | - "area": 2149756420.251772, |
296 | | - "tooSmall": false |
| 292 | + 'radius' : 26158.912849222437, |
| 293 | + 'meta' : 'circle', |
| 294 | + 'minSizeLabel': 'TOO SMALL', |
| 295 | + 'area' : 2149756420.251772, |
| 296 | + 'tooSmall' : false |
297 | 297 | }, |
298 | | - "geometry": { |
299 | | - "type": "Polygon", |
300 | | - "coordinates": [ |
| 298 | + 'geometry' : { |
| 299 | + 'type' : 'Polygon', |
| 300 | + 'coordinates': [ |
301 | 301 | [ |
302 | 302 | [ |
303 | 303 | 8.54997026487834, |
@@ -562,9 +562,9 @@ export const drawCircleExample2: DrawModel = { |
562 | 562 | ] |
563 | 563 | ] |
564 | 564 | } |
565 | | -}; |
| 565 | +}); |
566 | 566 |
|
567 | | -export const drawPolygonExample: DrawModel = { |
| 567 | +export const drawPolygonExample: DrawModel = Object.freeze({ |
568 | 568 | 'type' : 'Feature', |
569 | 569 | 'properties': { |
570 | 570 | 'meta': 'polygon' |
@@ -672,4 +672,4 @@ export const drawPolygonExample: DrawModel = { |
672 | 672 | ] |
673 | 673 | ] |
674 | 674 | } |
675 | | -}; |
| 675 | +}); |
0 commit comments