Skip to content

Commit 6f0dcea

Browse files
committed
front: add special signals in "holy land"
1 parent 1d7ab2a commit 6f0dcea

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

front/src/common/Map/Layers/geoSignalsLayers.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { CircleLayer, SymbolLayer } from 'react-map-gl/maplibre';
22
import { Theme, OmitLayer } from 'types';
3+
import holyLand from 'common/MotriceRelated/holyLand';
34

45
const signalTextOffsetX = 5;
56
const signalTextOffsetY = -1;
@@ -91,6 +92,8 @@ export function getSignalLayerProps(context: SignalContext): OmitLayer<SymbolLay
9192
'icon-offset': iconOffset,
9293
'icon-image': [
9394
'case',
95+
['within', holyLand],
96+
'UNKNOWN2',
9497
['==', ['get', 'signaling_system'], ['literal', null]],
9598
'UNKNOWN',
9699
['concat', ['get', 'signaling_system'], ':', ['get', 'sprite']],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const holyLand = {
2+
type: 'FeatureCollection',
3+
features: [
4+
{
5+
type: 'Feature',
6+
properties: {},
7+
geometry: {
8+
coordinates: [
9+
[
10+
[0.6915368552881205, 47.3902083909974],
11+
[0.6915368552881205, 47.38272098063578],
12+
[0.7017242439368943, 47.38272098063578],
13+
[0.7017242439368943, 47.3902083909974],
14+
[0.6915368552881205, 47.3902083909974],
15+
],
16+
],
17+
type: 'Polygon',
18+
},
19+
},
20+
],
21+
};
22+
23+
export default holyLand;

0 commit comments

Comments
 (0)