@nextgis/react-ngw-maplibre-gl 2.0.0-alpha.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 +22 -0
- package/README.md +28 -0
- package/index.js +7 -0
- package/lib/index.d.ts +8 -0
- package/lib/react-ngw-maplibre-gl.esm-bundler.js +32 -0
- package/lib/react-ngw-maplibre-gl.esm-bundler.js.map +1 -0
- package/lib/react-ngw-maplibre-gl.esm-bundler.prod.js +2 -0
- package/lib/react-ngw-maplibre-gl.esm-bundler.prod.js.map +1 -0
- package/package.json +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 NextGIS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ReactNgwMaplibreGL
|
|
2
|
+
|
|
3
|
+
 
|
|
4
|
+
|
|
5
|
+
Plugin to integrate NextGIS Web maps into react with [Maplibre GL JS](https://maplibre.org/maplibre-gl-js/docs/) adapter
|
|
6
|
+
|
|
7
|
+
```jsx
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { render } from 'react-dom';
|
|
10
|
+
import ReactNgwMap from '@nextgis/react-ngw-maplibre-gl';
|
|
11
|
+
|
|
12
|
+
function App() {
|
|
13
|
+
return (
|
|
14
|
+
<ReactNgwMap
|
|
15
|
+
baseUrl="https://demo.nextgis.com"
|
|
16
|
+
resources={[{ resource: 6118, id: 'webmap', fit: true }]}
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
render(<App />, document.getElementById('app'));
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Commercial support
|
|
25
|
+
|
|
26
|
+
Need to fix a bug or add a feature to `@nextgis/react-ngw-maplibre-gl`? We provide custom development and support for this software. [Contact us](http://nextgis.com/contact/) to discuss options!
|
|
27
|
+
|
|
28
|
+
[](http://nextgis.com)
|
package/index.js
ADDED
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import * as _nextgis_react_ngw_map from '@nextgis/react-ngw-map';
|
|
3
|
+
import { MapContainerProps } from '@nextgis/react-ngw-map';
|
|
4
|
+
import { Map } from 'maplibre-gl';
|
|
5
|
+
|
|
6
|
+
declare function ReactNgwMaplibreGL<Props extends MapContainerProps = MapContainerProps<Map>>(props: Props): react.FunctionComponentElement<_nextgis_react_ngw_map.ReactNgwMapProps>;
|
|
7
|
+
|
|
8
|
+
export { ReactNgwMaplibreGL as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Bundle of @nextgis/react-ngw-maplibre-gl; version: 2.0.0-alpha.0; author: NextGIS */
|
|
2
|
+
import MapAdapter from '@nextgis/maplibre-gl-map-adapter';
|
|
3
|
+
import { ReactNgwMap } from '@nextgis/react-ngw-map';
|
|
4
|
+
import { createElement } from 'react';
|
|
5
|
+
import 'maplibre-gl/dist/maplibre-gl.css';
|
|
6
|
+
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __defProps = Object.defineProperties;
|
|
9
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
10
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
13
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
14
|
+
var __spreadValues = (a, b) => {
|
|
15
|
+
for (var prop in b || (b = {}))
|
|
16
|
+
if (__hasOwnProp.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
if (__getOwnPropSymbols)
|
|
19
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
20
|
+
if (__propIsEnum.call(b, prop))
|
|
21
|
+
__defNormalProp(a, prop, b[prop]);
|
|
22
|
+
}
|
|
23
|
+
return a;
|
|
24
|
+
};
|
|
25
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
26
|
+
function ReactNgwMaplibreGL(props) {
|
|
27
|
+
const p = __spreadProps(__spreadValues({}, props), { mapAdapter: new MapAdapter() });
|
|
28
|
+
return createElement(ReactNgwMap, p);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { ReactNgwMaplibreGL as default };
|
|
32
|
+
//# sourceMappingURL=react-ngw-maplibre-gl.esm-bundler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-ngw-maplibre-gl.esm-bundler.js","sources":["../src/ReactNgwMaplibreGL.ts"],"sourcesContent":["import MapAdapter from '@nextgis/maplibre-gl-map-adapter';\nimport { ReactNgwMap } from '@nextgis/react-ngw-map';\nimport { createElement } from 'react';\n\nimport type { MapContainerProps } from '@nextgis/react-ngw-map';\nimport type { Map } from 'maplibre-gl';\n\nimport 'maplibre-gl/dist/maplibre-gl.css';\n\nexport function ReactNgwMaplibreGL<\n Props extends MapContainerProps = MapContainerProps<Map>,\n>(props: Props) {\n const p = { ...props, mapAdapter: new MapAdapter() };\n return createElement(ReactNgwMap, p);\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AASO,SAAS,mBAEd,KAAc,EAAA;AACd,EAAA,MAAM,IAAI,aAAK,CAAA,cAAA,CAAA,EAAA,EAAA,KAAA,CAAA,EAAL,EAAY,UAAY,EAAA,IAAI,YAAa,EAAA,CAAA,CAAA;AACnD,EAAO,OAAA,aAAA,CAAc,aAAa,CAAC,CAAA,CAAA;AACrC;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import r from"@nextgis/maplibre-gl-map-adapter";import{ReactNgwMap as e}from"@nextgis/react-ngw-map";import{createElement as t}from"react";import"maplibre-gl/dist/maplibre-gl.css";var o=Object.defineProperty,a=Object.defineProperties,p=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,m=(r,e,t)=>e in r?o(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;function c(o){const c=(b=((r,e)=>{for(var t in e||(e={}))n.call(e,t)&&m(r,t,e[t]);if(i)for(var t of i(e))l.call(e,t)&&m(r,t,e[t]);return r})({},o),s={mapAdapter:new r},a(b,p(s)));var b,s;return t(e,c)}export{c as default};
|
|
2
|
+
//# sourceMappingURL=react-ngw-maplibre-gl.esm-bundler.prod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-ngw-maplibre-gl.esm-bundler.prod.js","sources":["../src/ReactNgwMaplibreGL.ts"],"sourcesContent":["import MapAdapter from '@nextgis/maplibre-gl-map-adapter';\nimport { ReactNgwMap } from '@nextgis/react-ngw-map';\nimport { createElement } from 'react';\n\nimport type { MapContainerProps } from '@nextgis/react-ngw-map';\nimport type { Map } from 'maplibre-gl';\n\nimport 'maplibre-gl/dist/maplibre-gl.css';\n\nexport function ReactNgwMaplibreGL<\n Props extends MapContainerProps = MapContainerProps<Map>,\n>(props: Props) {\n const p = { ...props, mapAdapter: new MapAdapter() };\n return createElement(ReactNgwMap, p);\n}\n"],"names":["ReactNgwMaplibreGL","props","p","__spreadValues","mapAdapter","MapAdapter","createElement","ReactNgwMap"],"mappings":"0cASO,SAASA,EAEdC,GACA,MAAMC,wHAASC,CAAA,GAAAF,KAAL,CAAYG,WAAY,IAAIC,sBAC/B,OAAAC,EAAcC,EAAaL,EACpC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nextgis/react-ngw-maplibre-gl",
|
|
3
|
+
"version": "2.0.0-alpha.0",
|
|
4
|
+
"description": "React NextGIS Web map component for Maplibre GL JS",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"module": "lib/react-ngw-maplibre-gl.esm-bundler.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@nextgis/maplibre-gl-map-adapter": "^2.0.0-alpha.0",
|
|
10
|
+
"@nextgis/react-ngw-map": "^2.0.0-alpha.0"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@nextgis/build-tools": "^2.0.0-alpha.0"
|
|
14
|
+
},
|
|
15
|
+
"buildOptions": {
|
|
16
|
+
"name": "ReactNgwMaplibreGL",
|
|
17
|
+
"injectCss": true,
|
|
18
|
+
"formats": [
|
|
19
|
+
"esm-bundler"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"clean": "rimraf ./lib",
|
|
24
|
+
"dev": "node ../build-tools/lib/build.js",
|
|
25
|
+
"prod": "npm run dev -- --release",
|
|
26
|
+
"lint": "eslint ./src/**/*.ts --fix --c ../../.eslintrc",
|
|
27
|
+
"watch": "npm run dev -- --watch"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"NextGIS",
|
|
31
|
+
"MAP"
|
|
32
|
+
],
|
|
33
|
+
"author": "NextGIS",
|
|
34
|
+
"files": [
|
|
35
|
+
"index.js",
|
|
36
|
+
"lib"
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"homepage": "https://github.com/nextgis/nextgis_frontend/tree/master/packages/react-ngw-maplibre-gl#readme",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "git+https://github.com/nextgis/nextgis_frontend.git"
|
|
43
|
+
},
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/nextgis/nextgis_frontend/issues"
|
|
46
|
+
},
|
|
47
|
+
"gitHead": "6a4a43d17a08e468d2362f1ae9590094e39aa6cc"
|
|
48
|
+
}
|