回答編集履歴
2
修正
answer
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
},
|
12
12
|
'geometry': {
|
13
13
|
'type': 'Polygon',
|
14
|
-
'coordinates': [[point.x, point.y] for point in
|
14
|
+
'coordinates': [[point.x, point.y] for point in mesh.latlng]]
|
15
15
|
}
|
16
16
|
}
|
17
17
|
```
|
1
修正
answer
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
下記のように
|
1
|
+
下記のようにした場合どうでしょうか。
|
2
|
-
|
3
2
|
```
|
4
3
|
def as_dict(self):
|
5
4
|
mesh = self.obj
|
@@ -12,14 +11,7 @@
|
|
12
11
|
},
|
13
12
|
'geometry': {
|
14
13
|
'type': 'Polygon',
|
15
|
-
'coordinates': [[
|
14
|
+
'coordinates': [[point.x, point.y] for point in self.latlng]]
|
16
|
-
[-109.05, 41.00],
|
17
|
-
[-102.06, 40.99],
|
18
|
-
[-102.03, 36.99],
|
19
|
-
[-109.04, 36.99],
|
20
|
-
[-109.05, 41.00]
|
21
|
-
]]
|
22
15
|
}
|
23
16
|
}
|
24
|
-
```
|
17
|
+
```
|
25
|
-
https://leafletjs.com/examples/geojson/
|