Skip to content

Commit

Permalink
bug(app): Search environments (#39)
Browse files Browse the repository at this point in the history
* search placeholder

* site title

* english translations

* location

* clearsearchbar error

* fix search in demo

* environnement prod
  • Loading branch information
mneige authored Jun 6, 2023
1 parent 6c77eae commit a00538b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 132 deletions.
72 changes: 6 additions & 66 deletions src/environments/environment.github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const environment: Environment = {
production: true,
igo: {
app: {
forceCoordsNA: false,
forceCoordsNA: true,
install: {
enabled: true,
promote: true,
Expand All @@ -44,6 +44,10 @@ export const environment: Environment = {
prefix: ['./locale/']
},
searchSources: {
workspace: {
available: false,
enabled: false
},
nominatim: {
available: false
},
Expand Down Expand Up @@ -95,70 +99,6 @@ export const environment: Environment = {
+ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs',
extent: [31796.5834, 158846.2231, 1813323.4284, 2141241.0978]
}
],
searchOverlayStyle: {
base: {
markerColor: '#5ed0fb', // marker fill
markerOpacity: 0.8, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#a7e7ff', // marker contour
fillColor: '#5ed0fb', // poly
fillOpacity: 0.2, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#5ed0fb', // line and poly
strokeOpacity: 0.7, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
},
focus: {
markerColor: '#5ed0fb', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#DFF7FF', // marker contour
fillColor: '#5ed0fb', // poly
fillOpacity: 0.3, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#DFF7FF', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
},
selection: {
markerColor: '#00a1de', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#ffffff', // marker contour
fillColor: '#00a1de', // poly
fillOpacity: 0.3, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#00A1DE', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
}
},
queryOverlayStyle: {
base: {
markerColor: '#5ed0fb', // marker fill
markerOpacity: 0.8, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#a7e7ff', // marker contour
fillColor: '#5ed0fb', // poly
fillOpacity: 0.2, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#5ed0fb', // line and poly
strokeOpacity: 0.7, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
},
focus: {
markerColor: '#5ed0fb', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#DFF7FF', // marker contour
fillColor: '#5ed0fb', // poly
fillOpacity: 0.3, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#DFF7FF', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
},
selection: {
markerColor: '#00a1de', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#ffffff', // marker contour
fillColor: '#00a1de', // poly
fillOpacity: 0.3, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#00A1DE', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
}
}
]
}
};
75 changes: 9 additions & 66 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const environment: Environment = {
promote: false
},
pwa: {
enabled: false,
enabled: false
}
},
language: {
Expand Down Expand Up @@ -66,6 +66,10 @@ export const environment: Environment = {
}
],
searchSources: {
workspace: {
available: false,
enabled: false
},
nominatim: {
available: false
},
Expand All @@ -78,7 +82,9 @@ export const environment: Environment = {
order: 2,
params: {
limit: '5'
}
},
settings:[],
showInPointerSummary: true
},
coordinatesreverse: {
showInPointerSummary: true
Expand All @@ -90,76 +96,13 @@ export const environment: Environment = {
enabled: true
},
ilayer: {
enabled: false,
searchUrl: '/apis/icherche/layers',
order: 4,
params: {
limit: '3'
}
}
},
searchOverlayStyle: {
base: {
markerColor: '#5ed0fb', // marker fill
markerOpacity: 0.8, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#a7e7ff', // marker contour
fillColor: '#5ed0fb', // poly
fillOpacity: 0.2, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#5ed0fb', // line and poly
strokeOpacity: 0.7, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
},
focus: {
markerColor: '#5ed0fb', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#DFF7FF', // marker contour
fillColor: '#5ed0fb', // poly
fillOpacity: 0.3, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#DFF7FF', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
},
selection: {
markerColor: '#00a1de', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#ffffff', // marker contour
fillColor: '#00a1de', // poly
fillOpacity: 0.3, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#00A1DE', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
}
},
queryOverlayStyle: {
base: {
markerColor: '#5ed0fb', // marker fill
markerOpacity: 0.8, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#a7e7ff', // marker contour
fillColor: '#5ed0fb', // poly
fillOpacity: 0.2, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#5ed0fb', // line and poly
strokeOpacity: 0.7, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
},
focus: {
markerColor: '#5ed0fb', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#DFF7FF', // marker contour
fillColor: '#5ed0fb', // poly
fillOpacity: 0.3, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#DFF7FF', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
},
selection: {
markerColor: '#00a1de', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#ffffff', // marker contour
fillColor: '#00a1de', // poly
fillOpacity: 0.3, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#00A1DE', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 2 // line and poly
}
}
}
};

0 comments on commit a00538b

Please sign in to comment.