@treasuryspatial/map-kit 0.1.17 → 0.1.19

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/dist/mapLayers.js CHANGED
@@ -35,9 +35,9 @@ export function ensureFootprintLayers(map) {
35
35
  type: 'line',
36
36
  source: 'footprint-hover',
37
37
  paint: {
38
- 'line-color': '#f8d34a',
39
- 'line-width': 2,
40
- 'line-opacity': 0.9,
38
+ 'line-color': '#2F4A3C',
39
+ 'line-width': 1.2,
40
+ 'line-opacity': 0.8,
41
41
  },
42
42
  });
43
43
  if (!map.getSource('footprint-selected')) {
@@ -51,9 +51,9 @@ export function ensureFootprintLayers(map) {
51
51
  type: 'line',
52
52
  source: 'footprint-selected',
53
53
  paint: {
54
- 'line-color': '#6ee7ff',
55
- 'line-width': 3,
56
- 'line-opacity': 1,
54
+ 'line-color': '#8C3A2B',
55
+ 'line-width': 1.6,
56
+ 'line-opacity': 0.9,
57
57
  },
58
58
  });
59
59
  const setSource = (id, feature) => {
@@ -1 +1 @@
1
- {"version":3,"file":"mapThreeLayer.d.ts","sourceRoot":"","sources":["../src/mapThreeLayer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC;IACrC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9C,SAAS,EAAE,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IACjE,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,E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,7 +175,7 @@ export function createMapThreeLayer(options) {
175
175
  antialias: true,
176
176
  logarithmicDepthBuffer: true,
177
177
  alpha: true,
178
- premultipliedAlpha: false,
178
+ premultipliedAlpha: true,
179
179
  });
180
180
  renderer.autoClear = false;
181
181
  renderer.outputColorSpace = THREE.SRGBColorSpace;
@@ -191,6 +191,7 @@ export function createMapThreeLayer(options) {
191
191
  stencilBuffer: false,
192
192
  });
193
193
  renderTarget.texture.colorSpace = THREE.SRGBColorSpace;
194
+ renderTarget.texture.premultiplyAlpha = true;
194
195
  log('renderTarget', { width: targetWidth, height: targetHeight });
195
196
  const vsrc = `
196
197
  attribute vec2 a_pos;
@@ -340,7 +341,7 @@ export function createMapThreeLayer(options) {
340
341
  gl.disable(gl.SCISSOR_TEST);
341
342
  gl.colorMask(true, true, true, true);
342
343
  gl.enable(gl.BLEND);
343
- gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
344
+ gl.blendFuncSeparate(gl.ONE, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
344
345
  const canvas = mapRef?.getCanvas();
345
346
  if (canvas) {
346
347
  gl.viewport(0, 0, canvas.width, canvas.height);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuryspatial/map-kit",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./dist/index.js",