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/README.md +1 -1
- package/dist/mapicgc-gl.js +119 -119
- package/dist/mapicgc-gl.umd.js +119 -119
- package/docu_Map.md +0 -0
- package/nodeDeploy.js +1 -2
- package/nodeSetConfig.js +3 -5
- package/package.json +1 -1
- package/src/config.js +809 -809
- package/src/configNode.js +809 -809
- package/src/constants/Layers.js +155 -155
- package/src/constants/Styles.js +12 -12
- package/src/constants/Terrains.js +7 -7
- package/src/map/Map.js +103 -29
- package/test/Proposa_DAC_min.geojson +34115 -2639
- package/test/index.html +32 -25
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
|
-
|
|
19
|
+
padding: 0;
|
|
18
20
|
}
|
|
19
|
-
|
|
20
|
-
body,
|
|
21
|
+
|
|
21
22
|
#map {
|
|
22
|
-
|
|
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.
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
map.fetchDataAndMenu(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
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
|
-
//
|
|
249
|
-
//
|
|
250
|
-
//
|
|
251
|
-
//
|
|
252
|
-
//
|
|
253
|
-
//
|
|
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>
|