mapicgc-gl-js 0.0.38 → 0.0.39

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/test/index.html CHANGED
@@ -68,12 +68,13 @@
68
68
  //topografic, ortofoto, limits,fosc,ombra,, hipsometria, geologia, protegits
69
69
  const map = (window.map = new mapicgcgl.Map({
70
70
  container: "map",
71
- style: mapicgcgl.Styles.TOPO,
72
- // style: 'https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris_simplificat.json',
71
+ style: mapicgcgl.Styles.ORTO3D,
72
+ // style: 'http://imtilemapsdev.icgc.local/terrenys/Ciutats/tilesetV1.0.json',
73
73
  zoom: 8.4,
74
74
 
75
75
  }));
76
76
 
77
+ map.on("load", () => {
77
78
 
78
79
  let pointOptions={
79
80
  "circle-color": "black",
@@ -82,10 +83,18 @@
82
83
  map.fetchDataAndMenu(
83
84
  'Proposa_DAC_min.geojson',
84
85
  'Proposa_DAC_min',
85
- 'all',pointOptions)
86
+ // 'all',pointOptions)
87
+ 'Xarxa',pointOptions)
88
+ // map.addFeatureQuery('Proposa_DAC_min')
89
+
90
+
91
+
92
+
93
+
94
+ })
86
95
 
87
96
  let optionsText=['DOMEmarker', 'id', 'Xarxa']
88
- map.addFeatureQuery('Proposa_DAC_min')
97
+
89
98
 
90
99
 
91
100
 
@@ -105,7 +114,7 @@
105
114
  // map.addImageLayerICGC('geologia');
106
115
 
107
116
  // //censals, salut, provincies, aquifers...
108
- // map.addVectorLayerICGC(mapicgcgl.Layers.VectorAdmin.areesBasiquesServeisSocialsVigent)
117
+ // map.addVectorLayerICGC(mapicgcgl.Layers.VectorAdmin.provinciesVigent)
109
118
  // map.getConfigImageLayers()
110
119
 
111
120
  // // map.addFullScreen('bottom-right');
package/vite.config.mjs CHANGED
@@ -3,7 +3,11 @@ import babel from '@rollup/plugin-babel';
3
3
  import { nodePolyfills } from 'vite-plugin-node-polyfills'
4
4
 
5
5
  export default defineConfig({
6
+ define: {
7
+ 'process.env': {}
8
+ },
6
9
  build: {
10
+ minify: true,
7
11
  lib: {
8
12
  entry: 'src/index.js',
9
13
  fileName: 'mapicgc-gl',