mapicgc-gl-js 0.0.39 → 0.0.41

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
@@ -12,14 +12,19 @@
12
12
 
13
13
 
14
14
  <style>
15
+
16
+
15
17
  body {
16
18
  margin: 0;
17
- padding: 0;
19
+ padding: 0;
18
20
  }
19
- html,
20
- body,
21
+
21
22
  #map {
22
- height: 100%;
23
+ position: absolute;
24
+ top: 0;
25
+ bottom: 0;
26
+ width: 100%;
27
+ height: 100%;
23
28
  }
24
29
  #geocoder-container {
25
30
  margin: 20px;
@@ -68,7 +73,7 @@
68
73
  //topografic, ortofoto, limits,fosc,ombra,, hipsometria, geologia, protegits
69
74
  const map = (window.map = new mapicgcgl.Map({
70
75
  container: "map",
71
- style: mapicgcgl.Styles.ORTO3D,
76
+ style: mapicgcgl.Styles.ORTO,
72
77
  // style: 'http://imtilemapsdev.icgc.local/terrenys/Ciutats/tilesetV1.0.json',
73
78
  zoom: 8.4,
74
79
 
@@ -76,24 +81,23 @@
76
81
 
77
82
  map.on("load", () => {
78
83
 
79
- let pointOptions={
80
- "circle-color": "black",
81
- "circle-opacity": 0.8,
82
- }
83
- map.fetchDataAndMenu(
84
- 'Proposa_DAC_min.geojson',
85
- 'Proposa_DAC_min',
86
- // 'all',pointOptions)
87
- 'Xarxa',pointOptions)
88
- // map.addFeatureQuery('Proposa_DAC_min')
89
-
84
+ // let pointOptions={
85
+ // "circle-color": "black",
86
+ // "circle-opacity": 0.8,
87
+ // }
88
+ // map.fetchDataAndMenu(
89
+ // 'Proposa_DAC_min.geojson',
90
+ // 'Proposa_DAC_min',
91
+ // // 'all',pointOptions)
92
+ // 'Xarxa',pointOptions)
93
+ // // map.addFeatureQuery('Proposa_DAC_min')
90
94
 
91
95
 
92
96
 
97
+ // map.addTerrainICGC(mapicgcgl.Terrains.ICGC5M, 'bottom-right');
93
98
 
94
- })
95
99
 
96
- let optionsText=['DOMEmarker', 'id', 'Xarxa']
100
+ // let optionsText=['DOMEmarker', 'id', 'Xarxa']
97
101
 
98
102
 
99
103
 
@@ -114,7 +118,8 @@
114
118
  // map.addImageLayerICGC('geologia');
115
119
 
116
120
  // //censals, salut, provincies, aquifers...
117
- // map.addVectorLayerICGC(mapicgcgl.Layers.VectorAdmin.provinciesVigent)
121
+ map.addVectorLayerICGC(mapicgcgl.Layers.VectorAdmin.agrupacionsCensalsVigent)
122
+ map.addVectorLayerICGC(mapicgcgl.Layers.VectorAdmin.agrupacionsCensalsVigentText)
118
123
  // map.getConfigImageLayers()
119
124
 
120
125
  // // map.addFullScreen('bottom-right');
@@ -245,12 +250,13 @@ map.addGeocoderICGC()
245
250
 
246
251
 
247
252
 
248
- // let wmsLayer = {
249
- // id: "wms-test",
250
- // tiles:
251
- // "https://betaserver.icgc.cat/geoservice/194939610536528507705272100186218457502?service=WMS&request=GetMap&layers=swllH1905&styles=&format=image%2Fpng&transparent=true&version=1.1.1&nom=swellHeight_20210903&tipus=wms&businessId=-1&width=256&height=256&srs=EPSG%3A3857&bbox={bbox-epsg-3857}",
252
- // };
253
- // // map.addLayerWMS(wmsLayer);
253
+ // let wmsLayer = {
254
+ // id: "wms-test",
255
+ // tiles:
256
+ // "https://geoserveis.icgc.cat/servei/catalunya/espais-interes-geologic/wms/service?&service=WMS&request=GetMap&layers=espais-interes-geologic&styles=&format=image%2Fpng&transparent=true&version=1.1.1&tipus=wms&width=512&height=512&srs=EPSG%3A3857&bbox={bbox-epsg-3857}"
257
+ // // "https://betaserver.icgc.cat/geoservice/194939610536528507705272100186218457502?service=WMS&request=GetMap&layers=swllH1905&styles=&format=image%2Fpng&transparent=true&version=1.1.1&nom=swellHeight_20210903&tipus=wms&businessId=-1&width=256&height=256&srs=EPSG%3A3857&bbox={bbox-epsg-3857}",
258
+ // };
259
+ // map.addLayerWMS(wmsLayer);
254
260
 
255
261
 
256
262
  // // map.add3DBuildingsICGC()
@@ -337,6 +343,7 @@ map.addBasemapsICGC(basemapsicgc)
337
343
  // };
338
344
  // map.addLayerTree(layerTree);
339
345
 
346
+ })
340
347
  </script>
341
348
  </body>
342
349
  </html>