@nextgis/react-ngw-leaflet 4.0.0-alpha.6 → 4.0.0-rc.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/README.md +12 -5
- package/lib/react-ngw-leaflet.esm-bundler.js +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
 
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Ready-to-use React component for a Leaflet-based NextGIS Web map. It configures
|
|
6
|
+
the Leaflet adapter for the common component from `@nextgis/react-ngw-map`.
|
|
6
7
|
|
|
7
8
|
## Installation
|
|
8
9
|
|
|
@@ -12,9 +13,8 @@ npm install leaflet @nextgis/react-ngw-leaflet
|
|
|
12
13
|
|
|
13
14
|
## Usage
|
|
14
15
|
|
|
15
|
-
```
|
|
16
|
-
import
|
|
17
|
-
import { render } from 'react-dom';
|
|
16
|
+
```tsx
|
|
17
|
+
import { createRoot } from 'react-dom/client';
|
|
18
18
|
import ReactNgwMap from '@nextgis/react-ngw-leaflet';
|
|
19
19
|
|
|
20
20
|
function App() {
|
|
@@ -22,13 +22,20 @@ function App() {
|
|
|
22
22
|
<ReactNgwMap
|
|
23
23
|
baseUrl="https://demo.nextgis.com"
|
|
24
24
|
resources={[{ resource: 6118, id: 'webmap', fit: true }]}
|
|
25
|
+
style={{ width: '100%', height: '100%' }}
|
|
25
26
|
/>
|
|
26
27
|
);
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
createRoot(document.getElementById('app')!).render(<App />);
|
|
30
31
|
```
|
|
31
32
|
|
|
33
|
+
The component accepts the common `ReactNgwMap` props, including
|
|
34
|
+
`whenCreated`, `placeholder`, and `children`.
|
|
35
|
+
|
|
36
|
+
See the [API Documentation](https://code-api.nextgis.com/modules/_nextgis_react-ngw-leaflet.html)
|
|
37
|
+
and the [package architecture guide](../../docs/PACKAGES.md).
|
|
38
|
+
|
|
32
39
|
## Commercial support
|
|
33
40
|
|
|
34
41
|
Need to fix a bug or add a feature to `@nextgis/react-ngw-leaflet`? We provide custom development and support for this software. [Contact us](http://nextgis.com/contact/) to discuss options!
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/react-ngw-leaflet; version: 4.0.0-
|
|
1
|
+
/** Bundle of @nextgis/react-ngw-leaflet; version: 4.0.0-rc.0; author: NextGIS */
|
|
2
2
|
import MapAdapter from '@nextgis/leaflet-map-adapter';
|
|
3
3
|
import { ReactNgwMap } from '@nextgis/react-ngw-map';
|
|
4
4
|
import { Icon } from 'leaflet';
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextgis/react-ngw-leaflet",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-rc.0",
|
|
4
4
|
"description": "React NGW map component for leaflet",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/react-ngw-leaflet.esm-bundler.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nextgis/leaflet-map-adapter": "4.0.0-
|
|
10
|
-
"@nextgis/react-ngw-map": "4.0.0-
|
|
9
|
+
"@nextgis/leaflet-map-adapter": "4.0.0-rc.0",
|
|
10
|
+
"@nextgis/react-ngw-map": "4.0.0-rc.0"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@nextgis/build-tools": "4.0.0-
|
|
13
|
+
"@nextgis/build-tools": "4.0.0-rc.0"
|
|
14
14
|
},
|
|
15
15
|
"buildOptions": {
|
|
16
16
|
"name": "ReactNgwLeaflet",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"bugs": {
|
|
45
45
|
"url": "https://github.com/nextgis/nextgis_frontend/issues"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "f2ac9a52ba971ad54314b9c3003ac4cb15ded8c7"
|
|
48
48
|
}
|