@nextgis/react-ngw-maplibre-gl 4.0.0-alpha.7 → 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 CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  ![size](https://img.shields.io/bundlephobia/minzip/@nextgis/react-ngw-maplibre-gl) ![version](https://img.shields.io/npm/v/@nextgis/react-ngw-maplibre-gl)
4
4
 
5
- Plugin to integrate NextGIS Web maps into React with [Maplibre GL JS](https://maplibre.org/maplibre-gl-js/docs/) adapter
5
+ Ready-to-use React component for a [MapLibre GL JS](https://maplibre.org/maplibre-gl-js/docs/)-based
6
+ NextGIS Web map. It configures the MapLibre adapter for the common component
7
+ from `@nextgis/react-ngw-map`.
6
8
 
7
9
  ## Installation
8
10
 
@@ -12,9 +14,8 @@ npm install maplibre-gl @nextgis/react-ngw-maplibre-gl
12
14
 
13
15
  ## Usage
14
16
 
15
- ```jsx
16
- import React from 'react';
17
- import { render } from 'react-dom';
17
+ ```tsx
18
+ import { createRoot } from 'react-dom/client';
18
19
  import ReactNgwMap from '@nextgis/react-ngw-maplibre-gl';
19
20
 
20
21
  function App() {
@@ -22,13 +23,21 @@ function App() {
22
23
  <ReactNgwMap
23
24
  baseUrl="https://demo.nextgis.com"
24
25
  resources={[{ resource: 6118, id: 'webmap', fit: true }]}
26
+ style={{ width: '100%', height: '100%' }}
25
27
  />
26
28
  );
27
29
  }
28
30
 
29
- render(<App />, document.getElementById('app'));
31
+ createRoot(document.getElementById('app')!).render(<App />);
30
32
  ```
31
33
 
34
+ The component accepts the common `ReactNgwMap` props, including
35
+ `whenCreated`, `placeholder`, and `children`. MapLibre GL JS worker setup also
36
+ applies; see the [ngw-maplibre-gl instructions](../ngw-maplibre-gl/README.md#maplibre-gl-js-6-worker).
37
+
38
+ See the [API Documentation](https://code-api.nextgis.com/modules/_nextgis_react-ngw-maplibre-gl.html)
39
+ and the [package architecture guide](../../docs/PACKAGES.md).
40
+
32
41
  ## Commercial support
33
42
 
34
43
  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!
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/react-ngw-maplibre-gl; version: 4.0.0-alpha.7; author: NextGIS */
1
+ /** Bundle of @nextgis/react-ngw-maplibre-gl; version: 4.0.0-rc.0; author: NextGIS */
2
2
  import MapAdapter from '@nextgis/maplibre-gl-map-adapter';
3
3
  import { ReactNgwMap } from '@nextgis/react-ngw-map';
4
4
  import { createElement } from 'react';
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@nextgis/react-ngw-maplibre-gl",
3
- "version": "4.0.0-alpha.7",
3
+ "version": "4.0.0-rc.0",
4
4
  "description": "React NextGIS Web map component for Maplibre GL JS",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/react-ngw-maplibre-gl.esm-bundler.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nextgis/maplibre-gl-map-adapter": "4.0.0-alpha.7",
10
- "@nextgis/react-ngw-map": "4.0.0-alpha.6"
9
+ "@nextgis/maplibre-gl-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-alpha.6"
13
+ "@nextgis/build-tools": "4.0.0-rc.0"
14
14
  },
15
15
  "buildOptions": {
16
16
  "name": "ReactNgwMaplibreGL",
@@ -44,5 +44,5 @@
44
44
  "bugs": {
45
45
  "url": "https://github.com/nextgis/nextgis_frontend/issues"
46
46
  },
47
- "gitHead": "37e6c991eff21c0f8ab633b8b2a082687a0d7905"
47
+ "gitHead": "f2ac9a52ba971ad54314b9c3003ac4cb15ded8c7"
48
48
  }