mapicgc-gl-js 0.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/LICENSE.md +21 -0
- package/README.md +59 -0
- package/dist/mapicgc-gl.css +926 -0
- package/dist/mapicgc-gl.js +61 -0
- package/dist/mapicgc-gl.js.map +1 -0
- package/package.json +119 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 GeoStart
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# 馃椇 mapicgc-gl-js
|
|
2
|
+
|
|
3
|
+
Biblioteca de mapes ICGC. Envoltori de MaplibreGL
|
|
4
|
+
|
|
5
|
+
<br>
|
|
6
|
+
Versi贸 0.0.3
|
|
7
|
+
|
|
8
|
+
<br>
|
|
9
|
+
### Documentaci贸:
|
|
10
|
+
|
|
11
|
+
- [Documentaci贸 de les funcions del Mapa (docu_Map.md)](docu_Map.md)
|
|
12
|
+
|
|
13
|
+
<br>
|
|
14
|
+
|
|
15
|
+
### Com afegir la biblioteca a un projecte propi?
|
|
16
|
+
|
|
17
|
+
1. Instal路lar la biblioteca:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm i mapicgc-gl-js
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
2. Afegir les seg眉ents l铆nies de codi JS i CSS a l'encap莽alament del teu HTML:
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<script src="https://geostarters.github.io/mapicgc-gl-js/dist/mapicgc-gl.js"></script>
|
|
27
|
+
<script src="https://www.unpkg.com/@watergis/maplibre-gl-export@3.0.1/dist/maplibre-gl-export.umd.js"></script>
|
|
28
|
+
|
|
29
|
+
<link rel="stylesheet" href="https://geostarters.github.io/mapicgc-gl-js/dist/mapicgc-gl.css" />
|
|
30
|
+
<link href="https://www.unpkg.com/@watergis/maplibre-gl-export@3.0.1/dist/maplibre-gl-export.css" rel="stylesheet" />
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
3. En el script del cos del document, declarar el mapa de la seg眉ent manera:
|
|
34
|
+
|
|
35
|
+
```javascript
|
|
36
|
+
const map = (window.map = new mapicgcgl.Map({
|
|
37
|
+
style: "topografic",
|
|
38
|
+
}));
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Funcionalitats
|
|
42
|
+
|
|
43
|
+
- Mapa per defecte: Topogr脿fic ICGC
|
|
44
|
+
- Fons de mapes: Topogr脿fic, Orto, H铆brid, Gris, Fosc
|
|
45
|
+
|
|
46
|
+
- Afegir capes GeoJson i WMS
|
|
47
|
+
- Cercador
|
|
48
|
+
|
|
49
|
+
- Markers
|
|
50
|
+
|
|
51
|
+
- Control Basemaps
|
|
52
|
+
|
|
53
|
+
- Control atribuci贸
|
|
54
|
+
|
|
55
|
+
- Control Capes
|
|
56
|
+
|
|
57
|
+
- Control print
|
|
58
|
+
|
|
59
|
+
- Popups
|