@panoramax/web-viewer 3.1.1-develop-a3fa5272 → 3.1.1-develop-4243d3f4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "3.1.1-develop-a3fa5272",
3
+ "version": "3.1.1-develop-4243d3f4",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
package/src/utils/Map.js CHANGED
@@ -199,18 +199,19 @@ export function combineStyles(parent, options) {
199
199
  let capitalLayer = style.layers.find(l => l.id == "place_label_capital");
200
200
  if(citiesLayer && !capitalLayer) {
201
201
  // Create capital layer from original city style
202
+ citiesLayer.paint = {
203
+ "text-color": "hsl(0, 0%, 0%)",
204
+ "text-halo-blur": 0,
205
+ "text-halo-color": "hsla(0, 0%, 100%, 1)",
206
+ "text-halo-width": 3,
207
+ };
208
+ citiesLayer.layout["text-letter-spacing"] = 0.1;
202
209
  capitalLayer = JSON.parse(JSON.stringify(citiesLayer));
203
210
  capitalLayer.id = "place_label_capital";
204
211
  capitalLayer.filter.push(["<=", "capital", 2]);
205
212
 
206
213
  // Edit original city to make it less import
207
214
  citiesLayer.filter.push([">", "capital", 2]);
208
- citiesLayer.paint = {
209
- "text-color": "hsl(0,0%,15%)",
210
- "text-halo-blur": 0.5,
211
- "text-halo-color": "hsl(0,0%,100%)",
212
- "text-halo-width": 0.8,
213
- };
214
215
  style.layers.push(capitalLayer);
215
216
  }
216
217