File tree Expand file tree Collapse file tree 4 files changed +1
-54
lines changed Expand file tree Collapse file tree 4 files changed +1
-54
lines changed Original file line number Diff line number Diff line change 1
- release =0.9 -SNAPSHOT
1
+ release =0.8 -SNAPSHOT
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ const URLS = {
22
22
DATA : "/data/{type}" ,
23
23
LOGS : "/logs" ,
24
24
PROPERTIES : "/properties" ,
25
- POLYGONS : "/polygons" ,
26
25
RESOURCES : "/resources?resource={resource}" ,
27
26
SKIN : "/skin/{uuid}" ,
28
27
STATUS : "/status" ,
@@ -91,8 +90,6 @@ export async function getAllData(imagesSince) {
91
90
data . players = await getData ( DATA_TYPES . PLAYERS )
92
91
data . villagers = await getData ( DATA_TYPES . VILLAGERS )
93
92
94
- data . polygons = await getPolygons ( )
95
-
96
93
return data
97
94
}
98
95
@@ -108,9 +105,6 @@ export async function setProperties(properties) {
108
105
return json ( URLS . PROPERTIES , POST , properties )
109
106
}
110
107
111
- export async function getPolygons ( ) {
112
- return json ( URLS . POLYGONS , GET )
113
- }
114
108
115
109
export function getResourceUrl ( resource ) {
116
110
return URLS . RESOURCES . format ( { resource : encodeURIComponent ( resource ) } )
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ export default {
30
30
undergroundIcon : undergroundIcon ,
31
31
32
32
markers : [ ] ,
33
- polygons : [ ] ,
34
33
tiles : { } ,
35
34
waypoints : [ ] ,
36
35
@@ -62,7 +61,6 @@ export default {
62
61
visiblePlayers : true ,
63
62
visibleVillagers : true ,
64
63
65
- visiblePolygons : true ,
66
64
visibleWaypoints : true ,
67
65
68
66
JMTileLayer : JMTileLayer ,
Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ class Journeymap {
165
165
this . lastTileCheck = now
166
166
167
167
datastore . state . markers = this . _buildMarkers ( data )
168
- datastore . state . polygons = this . _buildPolygons ( data )
169
168
datastore . state . waypoints = this . _buildWaypoints ( data )
170
169
171
170
this . player_x = data . player . posX
@@ -342,50 +341,6 @@ class Journeymap {
342
341
return markers
343
342
}
344
343
345
- _buildPolygons ( data ) {
346
- const polygons = [ ]
347
-
348
- if ( ! datastore . state . visiblePolygons ) {
349
- return polygons
350
- }
351
-
352
- for ( const polygon of Object . values ( data . polygons ) ) {
353
- let coords = [ ]
354
- const holes = [ ]
355
-
356
- for ( const point of Object . values ( polygon . points ) ) {
357
- coords . push ( translateCoords ( point . x , point . z ) )
358
- }
359
-
360
- if ( polygon . holes . size > 0 ) {
361
- for ( const holeObj of Object . values ( polygon . holes ) ) {
362
- const hole = [ ]
363
-
364
- for ( const point of Object . values ( holeObj ) ) {
365
- hole . push ( translateCoords ( point . x , point . z ) )
366
- }
367
-
368
- holes . push ( hole )
369
- }
370
-
371
- coords = coords . concat ( [ coords ] , holes )
372
- }
373
-
374
- polygons . push ( {
375
- latLngs : coords ,
376
-
377
- strokeColor : polygon . strokeColor ,
378
- strokeOpacity : polygon . strokeOpacity ,
379
- strokeWidth : polygon . strokeWidth ,
380
-
381
- fillColor : polygon . fillColor ,
382
- fillOpacity : polygon . fillOpacity ,
383
- } )
384
- }
385
-
386
- return polygons
387
- }
388
-
389
344
_buildWaypoints ( data ) {
390
345
const waypoints = [ ]
391
346
You can’t perform that action at this time.
0 commit comments