File tree Expand file tree Collapse file tree 1 file changed +1
-48
lines changed Expand file tree Collapse file tree 1 file changed +1
-48
lines changed Original file line number Diff line number Diff line change 10
10
### To install
11
11
12
12
``` bash
13
- git clone https://github.com/OpenICGC/basic -mapicgc-gl-js-viewer-js .git
13
+ git clone https://github.com/OpenICGC/extended -mapicgc-gl-js-viewer.git
14
14
15
15
cd /basic-mapicgc-gl-js-viewer-js
16
16
@@ -19,50 +19,3 @@ npm run build
19
19
npm run serve
20
20
21
21
```
22
-
23
-
24
-
25
- ### Javascript
26
-
27
- ``` javascript
28
-
29
- import { Map , Config } from " mapicgc-gl-js" ;
30
- // import * as mapicgcgl from "mapicgc-gl-js";
31
-
32
- async function initMap () {
33
- try {
34
- const data = await Config .getConfigICGC ();
35
- const map = new Map ({
36
- container: " map" ,
37
- style: data .Styles .LIGHT ,
38
- center: [1.808 , 41.618 ],
39
- zoom: 10 ,
40
- maxZoom: 19 ,
41
- hash: true ,
42
- pitch: 0 ,
43
- });
44
- map .on (" load" , () => {
45
- // GEOCODER
46
- map .addGeocoderICGC ();
47
- // CONTROLS
48
- map .addGeolocateControl (
49
- {
50
- positionOptions: {
51
- enableHighAccuracy: true ,
52
- },
53
- trackUserLocation: true ,
54
- },
55
- " bottom-right"
56
- );
57
- map .addExportControl ({}, " top-right" );
58
- map .addFullscreenControl ({}, " top-right" );
59
- map .addTerrainICGC (data .Terrains .ICGC5M , " bottom-right" );
60
- });
61
- } catch (err) {
62
- console .error (err);
63
- }
64
- }
65
-
66
- initMap ();
67
-
68
- ```
You can’t perform that action at this time.
0 commit comments