Bugfix: Correct GeoJSON
This commit is contained in:
parent
ff412dcd5d
commit
0ff5ca462e
1 changed files with 11 additions and 4 deletions
|
@ -57,6 +57,10 @@ class LayerAI {
|
|||
let map = this.render_map();
|
||||
return L.geoJSON(map, {
|
||||
style: (feature) => { return {
|
||||
stroke: true,
|
||||
color: feature.properties.colour,
|
||||
weight: 1,
|
||||
|
||||
fillColor: feature.properties.colour,
|
||||
fillOpacity: 0.4
|
||||
} }
|
||||
|
@ -108,10 +112,13 @@ class LayerAI {
|
|||
geometry: {
|
||||
type: "Polygon",
|
||||
coordinates: [
|
||||
[lat, lng],
|
||||
[lat + Config.step, lng],
|
||||
[lat + Config.step, lng + Config.step],
|
||||
[lat, lng + Config.step]
|
||||
[ // Outer shape
|
||||
[lat, lng],
|
||||
[lat + Config.step, lng],
|
||||
[lat + Config.step, lng + Config.step],
|
||||
[lat, lng + Config.step]
|
||||
]
|
||||
// If there were any holes in the shape, we'd put them here
|
||||
]
|
||||
},
|
||||
properties: {
|
||||
|
|
Loading…
Reference in a new issue