@mapxus/mapxus-map-jp 5.2.0 → 5.3.0

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 CHANGED
@@ -1,6 +1,4 @@
1
- BSD 3-Clause License
2
-
3
- Copyright (c) 2021, Mapxus Technology Holding Limited
1
+ Copyright (c) 2018, Maphive Technology Limited
4
2
 
5
3
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6
4
 
@@ -11,148 +9,3 @@ Redistribution and use in source and binary forms, with or without modification,
11
9
  * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
12
10
 
13
11
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
-
15
- --------------------------------------------------------------------------------
16
-
17
- Uses portions of geojson
18
-
19
- Copyright (c) Microsoft Corporation.
20
-
21
- Permission is hereby granted, free of charge, to any person obtaining a copy
22
- of this software and associated documentation files (the "Software"), to deal
23
- in the Software without restriction, including without limitation the rights
24
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25
- copies of the Software, and to permit persons to whom the Software is
26
- furnished to do so, subject to the following conditions:
27
-
28
- The above copyright notice and this permission notice shall be included in all
29
- copies or substantial portions of the Software.
30
-
31
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37
- SOFTWARE
38
-
39
-
40
- -------------------------------------------------------------------------------
41
-
42
- Uses portions of maplibre-gl-js
43
-
44
- Copyright (c) 2020, MapLibre contributors
45
-
46
- All rights reserved.
47
-
48
- Redistribution and use in source and binary forms, with or without modification,
49
- are permitted provided that the following conditions are met:
50
-
51
- * Redistributions of source code must retain the above copyright notice,
52
- this list of conditions and the following disclaimer.
53
- * Redistributions in binary form must reproduce the above copyright notice,
54
- this list of conditions and the following disclaimer in the documentation
55
- and/or other materials provided with the distribution.
56
- * Neither the name of MapLibre GL JS nor the names of its contributors
57
- may be used to endorse or promote products derived from this software
58
- without specific prior written permission.
59
-
60
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
61
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
62
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
63
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
64
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
65
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
66
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
67
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
68
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
69
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
70
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
71
-
72
- -------------------------------------------------------------------------------
73
-
74
- Contains code from mapbox-gl-js v1.13 and earlier
75
-
76
- Version v1.13 of mapbox-gl-js and earlier are licensed under a BSD-3-Clause license
77
-
78
- Copyright (c) 2020, Mapbox
79
- Redistribution and use in source and binary forms, with or without modification,
80
- are permitted provided that the following conditions are met:
81
-
82
- * Redistributions of source code must retain the above copyright notice,
83
- this list of conditions and the following disclaimer.
84
- * Redistributions in binary form must reproduce the above copyright notice,
85
- this list of conditions and the following disclaimer in the documentation
86
- and/or other materials provided with the distribution.
87
- * Neither the name of Mapbox GL JS nor the names of its contributors
88
- may be used to endorse or promote products derived from this software
89
- without specific prior written permission.
90
-
91
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
92
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
93
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
94
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
95
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
96
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
97
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
98
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
99
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
100
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
101
- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
102
-
103
-
104
- -------------------------------------------------------------------------------
105
-
106
- Contains code from glfx.js
107
-
108
- Copyright (C) 2011 by Evan Wallace
109
-
110
- Permission is hereby granted, free of charge, to any person obtaining a copy
111
- of this software and associated documentation files (the "Software"), to deal
112
- in the Software without restriction, including without limitation the rights
113
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
114
- copies of the Software, and to permit persons to whom the Software is
115
- furnished to do so, subject to the following conditions:
116
-
117
- The above copyright notice and this permission notice shall be included in
118
- all copies or substantial portions of the Software.
119
-
120
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
121
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
122
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
123
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
124
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
125
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
126
- THE SOFTWARE.
127
-
128
- --------------------------------------------------------------------------------
129
-
130
- Contains a portion of d3-color https://github.com/d3/d3-color
131
-
132
- Copyright 2010-2016 Mike Bostock
133
- All rights reserved.
134
-
135
- Redistribution and use in source and binary forms, with or without modification,
136
- are permitted provided that the following conditions are met:
137
-
138
- * Redistributions of source code must retain the above copyright notice, this
139
- list of conditions and the following disclaimer.
140
-
141
- * Redistributions in binary form must reproduce the above copyright notice,
142
- this list of conditions and the following disclaimer in the documentation
143
- and/or other materials provided with the distribution.
144
-
145
- * Neither the name of the author nor the names of contributors may be used to
146
- endorse or promote products derived from this software without specific prior
147
- written permission.
148
-
149
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
150
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
151
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
152
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
153
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
154
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
155
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
156
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
157
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
158
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -2,25 +2,25 @@
2
2
 
3
3
  ## Dependency
4
4
 
5
- mapbox-gl-js
5
+ maplibre-gl-js
6
6
 
7
7
  ## Install
8
8
  ```
9
- npm install mapxus-map
9
+ npm install @mapxus/mapxus-map
10
10
  ```
11
11
 
12
12
  ## Example
13
13
  ```js
14
- import mapboxgl from 'mapbox-gl';
15
- import 'mapbox-gl/src/css/mapbox-gl.css';
16
- import * as MapxusMap from 'mapxus-map';
14
+ import 'maplibre-gl/dist/maplibre-gl.css';
15
+ import maplibregl from 'maplibre-gl';
16
+ import * as MapxusMap from '@mapxus/mapxus-map';
17
17
 
18
- const mapbox = new mapboxgl.Map({
19
- container: 'map'
18
+ const maplibreMap = new maplibregl.Map({
19
+ container: 'map'
20
20
  });
21
21
 
22
22
  const map = new MapxusMap.Map({
23
- map: mapbox,
23
+ map: maplibreMap,
24
24
  appId: 'your_appId',
25
25
  secret: 'your_secret',
26
26
  buildingId: 'building_id', // example: elements_hk_dc005f
@@ -35,4 +35,4 @@ Docs are available at [https://map-service.mapxus.com/dpw/digitalMapWeb](https:/
35
35
 
36
36
  ## License
37
37
 
38
- 3-Clause BSD
38
+ 3-Clause BSD