@file-viewer/renderer-geo 3.0.2 → 3.0.3

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/geo.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { createFileViewerTranslator, createFileViewerViewStateChange, createFileViewerViewStateChangeEmitter, createFileViewerZoomChangeEmitter, readFileViewerText, registerFileViewerViewStateProvider, registerFileViewerZoomProvider, unregisterFileViewerViewStateProvider, unregisterFileViewerZoomProvider, } from '@file-viewer/core';
2
+ import { configureMapLibreWorker } from './maplibre-worker.js';
2
3
  const SVG_NS = 'http://www.w3.org/2000/svg';
3
4
  const GEO_WIDTH = 960;
4
5
  const GEO_HEIGHT = 620;
@@ -52,7 +53,7 @@ const geoStyle = `
52
53
  .geo-viewer .maplibregl-ctrl{display:flex;overflow:hidden;border:1px solid rgba(15,23,42,.12);border-radius:8px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.12)}
53
54
  .geo-viewer .maplibregl-ctrl button{display:block;width:30px;height:30px;border:0;border-bottom:1px solid rgba(15,23,42,.08);background:#fff;color:#132235;cursor:pointer;font-size:0}
54
55
  .geo-viewer .maplibregl-ctrl button:last-child{border-bottom:0}.geo-viewer .maplibregl-ctrl button:hover{background:#f1f5f9}
55
- .geo-viewer .maplibregl-ctrl-icon.maplibregl-ctrl-zoom-in::before{content:'+';font-size:18px;font-weight:800}.geo-viewer .maplibregl-ctrl-icon.maplibregl-ctrl-zoom-out::before{content:'-';font-size:20px;font-weight:800}
56
+ .geo-viewer .maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon::before{content:'+';font-size:18px;font-weight:800}.geo-viewer .maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon::before{content:'-';font-size:20px;font-weight:800}
56
57
  .geo-viewer .maplibregl-ctrl-compass{display:none!important}
57
58
  .geo-viewer .maplibregl-ctrl-bottom-right{position:absolute;right:8px;bottom:8px;pointer-events:auto}
58
59
  .geo-viewer .maplibregl-ctrl-attrib{display:block;max-width:min(460px,calc(100vw - 40px));border-radius:6px;padding:3px 7px;background:rgba(255,255,255,.9);box-shadow:0 8px 20px rgba(15,23,42,.12);color:#334155;font-size:11px;line-height:1.45}
@@ -884,6 +885,7 @@ const createMapLibreMap = (maplibre, host, basemap) => {
884
885
  const mountMapLibre = async (host, root, parsed, options, basemap, t) => {
885
886
  var _a;
886
887
  const maplibre = await import('maplibre-gl');
888
+ configureMapLibreWorker(maplibre);
887
889
  let activeBasemap = basemap;
888
890
  let map = createMapLibreMap(maplibre, host, activeBasemap);
889
891
  map.addControl(new maplibre.NavigationControl({ showCompass: false, visualizePitch: false }), 'top-right');
@@ -0,0 +1 @@
1
+ export declare const maplibreWorkerSource: string;