@neshan-maps-platform/react-openlayers 2.0.8 → 2.0.10
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 +4 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,8 +61,8 @@ English | [Português](./README-pt_BR.md) | [简体中文](./README-zh_CN.md) |
|
|
|
61
61
|
- [Electron](https://www.electronjs.org/)
|
|
62
62
|
|
|
63
63
|
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Electron |
|
|
64
|
-
|
|
|
65
|
-
| Edge
|
|
64
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
65
|
+
| Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions | -->
|
|
66
66
|
|
|
67
67
|
## 📦 Install
|
|
68
68
|
|
|
@@ -77,7 +77,7 @@ yarn add @neshan-maps-platform/react-openlayers
|
|
|
77
77
|
## 🔨 Usage
|
|
78
78
|
|
|
79
79
|
```jsx
|
|
80
|
-
import { useEffect, useRef
|
|
80
|
+
import { useEffect, useRef } from "react"
|
|
81
81
|
import classes from "./App.module.scss"
|
|
82
82
|
|
|
83
83
|
import { NeshanMap, NeshanMapRef } from '../dist/React-NeshanMap-Openlayers'
|
|
@@ -93,8 +93,7 @@ function App() {
|
|
|
93
93
|
setTimeout(() => {
|
|
94
94
|
console.log(mapRef.current);
|
|
95
95
|
}, 2000);
|
|
96
|
-
|
|
97
|
-
}, [() => mapRef.current])
|
|
96
|
+
}, )
|
|
98
97
|
|
|
99
98
|
return (
|
|
100
99
|
<NeshanMap
|
package/package.json
CHANGED