openlayers-style-editor 0.1.2 → 0.1.3

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
@@ -1,22 +1,17 @@
1
1
  <p align="center"><img src="https://land-it.github.io/openlayers-style-editor/favicons/android-chrome-192x192.png"></p>
2
2
  <h1 align="center">Welcome to <code>openlayers-style-editor</code></h1>
3
- <p>
4
- <a href="https://www.npmjs.com/package/openlayers-style-editor" target="_blank">
5
- <img alt="Version" src="https://img.shields.io/npm/v/openlayers-style-editor.svg">
6
- </a>
7
- <a href="https://www.npmjs.com/package/openlayers-style-editor" target="_blank">
8
- <img alt="Downloads" src="https://img.shields.io/npm/dw/openlayers-style-editor">
9
- </a>
10
- <a href="https://openlayers-style-editor.rajinwonderland.vercel.app" target="_blank">
11
- <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
12
- </a>
13
3
 
14
- [//]: # ( <a href="#" target="_blank">)
4
+ ![](https://img.shields.io/npm/v/openlayers-style-editor.svg)
5
+ ![](https://img.shields.io/npm/dw/openlayers-style-editor)
6
+ ![](https://img.shields.io/npm/dt/openlayers-style-editor)
7
+ ![](https://img.shields.io/github/stars/land-it/openlayers-style-editor)
8
+ ![](https://img.shields.io/github/commit-activity/m/land-it/openlayers-style-editor)
9
+ ![](https://img.shields.io/github/v/release/land-it/openlayers-style-editor)
15
10
 
16
- [//]: # ( <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />)
17
-
18
- [//]: # ( </a>)
19
- </p>
11
+ ![](https://img.shields.io/badge/documentation-yes-brightgreen.svg)
12
+ ![](https://img.shields.io/github/issues/land-it/openlayers-style-editor)
13
+ ![](https://img.shields.io/github/issues-closed/land-it/openlayers-style-editor)
14
+ ![](https://img.shields.io/github/contributors/land-it/openlayers-style-editor)
20
15
 
21
16
 
22
17
  ### ✨ [Demo](https://land-it.github.io/openlayers-style-editor/#/demo)
@@ -74,6 +69,12 @@ yarn add openlayers-style-editor
74
69
 
75
70
  ## Usage
76
71
 
72
+ Firstly it is necessary to import the styles of the package. This can be done by adding the following code snippet to your index/main file.
73
+
74
+ ```tsx
75
+ import 'openlayers-style-editor/dist/openlayers-style-editor.css';
76
+ ```
77
+
77
78
  It is possible to enjoy this package by adding the following code snippets to your code.
78
79
 
79
80
  ```tsx
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ColorRamp } from './rampColors';
3
- import { PredefinedRenderer, Render, SEAttribute } from '../RendererObjects.ts';
3
+ import { PredefinedRenderer, Render, SEAttribute } from '../rendererUtils';
4
4
  interface Props {
5
5
  attr: SEAttribute[];
6
6
  layerDefaultRenderer: Render;
@@ -1,5 +1,5 @@
1
1
  import { default as React, Dispatch, SetStateAction } from 'react';
2
- import { SEAttribute, PredefinedRenderer, Render } from '../RendererObjects.ts';
2
+ import { SEAttribute, PredefinedRenderer, Render } from '../rendererUtils';
3
3
  import { ColorRamp } from './rampColors.ts';
4
4
  interface Props {
5
5
  attributes: SEAttribute[];
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { SEAttribute, Render } from '../RendererObjects.ts';
2
+ import { SEAttribute, Render } from '../rendererUtils';
3
3
  import { ColorRamp } from './rampColors.ts';
4
4
  interface GraduatedProps {
5
5
  attr: SEAttribute[];
@@ -1,7 +1,7 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import { PredefinedRenderer, Render } from './RendererObjects.ts';
2
+ import { PredefinedRenderer, Render } from '../../rendererUtils.ts';
3
3
  import { Feature } from 'ol';
4
- import { ColorRamp } from './components/rampColors.ts';
4
+ import { ColorRamp } from '../rampColors.ts';
5
5
  interface Props {
6
6
  visible: boolean;
7
7
  setVisible: Dispatch<SetStateAction<boolean>>;
@@ -1,6 +1,6 @@
1
1
  import { default as React, Dispatch, SetStateAction } from 'react';
2
- import { PredefinedRenderer, Render } from './RendererObjects.ts';
3
- import { ColorRamp } from './components/rampColors.ts';
2
+ import { PredefinedRenderer, Render } from '../../rendererUtils.ts';
3
+ import { ColorRamp } from '../rampColors.ts';
4
4
  import { Feature } from 'ol';
5
5
  interface Props {
6
6
  visible: boolean;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { Render } from '../RendererObjects.ts';
2
+ import { Render } from '../rendererUtils';
3
3
  interface UniqueSymbolProps {
4
4
  layerDefaultRenderer: Render;
5
5
  layerCurrentRenderer: Render;
@@ -1,3 +1,3 @@
1
1
  import { Feature } from 'ol';
2
- import { SEAttribute } from '../RendererObjects.ts';
2
+ import { SEAttribute } from '../rendererUtils';
3
3
  export declare function mapFeaturesToSEAttributes(features: Feature[]): SEAttribute[];
package/dist/i18n.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { default as i18n } from 'i18next';
2
+ export default i18n;