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 +16 -15
- package/dist/{src/components → components}/categorized.d.ts +1 -1
- package/dist/{src/components → components}/geometryEditor.d.ts +1 -1
- package/dist/{src/components → components}/graduated.d.ts +1 -1
- package/dist/{src → components/main}/StyleEditor.d.ts +2 -2
- package/dist/{src → components/main}/StyleEditorComponent.d.ts +2 -2
- package/dist/{src/components → components}/uniqueSymbol.d.ts +1 -1
- package/dist/{src/components → components}/utills.d.ts +1 -1
- package/dist/i18n.d.ts +2 -0
- package/dist/index.cjs +1979 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1993 -0
- package/dist/openlayers-style-editor.css +1 -0
- package/package.json +23 -28
- package/dist/auto-CstrphjX.js +0 -9119
- package/dist/openlayers-style-editor.js +0 -30943
- package/dist/openlayers-style-editor.umd.cjs +0 -1602
- package/dist/src/index.d.ts +0 -2
- package/dist/src/locales/en/translation.json.d.ts +0 -69
- package/dist/src/locales/pt/translation.json.d.ts +0 -70
- /package/dist/{src/components → components}/myColorPicker.d.ts +0 -0
- /package/dist/{src/components → components}/rampColors.d.ts +0 -0
- /package/dist/{src/RendererObjects.d.ts → rendererUtils.d.ts} +0 -0
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
|
-
[
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
15
10
|
|
|
16
|
-
[
|
|
17
|
-
|
|
18
|
-
[
|
|
19
|
-
|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
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 '../
|
|
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 '../
|
|
2
|
+
import { SEAttribute, PredefinedRenderer, Render } from '../rendererUtils';
|
|
3
3
|
import { ColorRamp } from './rampColors.ts';
|
|
4
4
|
interface Props {
|
|
5
5
|
attributes: SEAttribute[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { PredefinedRenderer, Render } from '
|
|
2
|
+
import { PredefinedRenderer, Render } from '../../rendererUtils.ts';
|
|
3
3
|
import { Feature } from 'ol';
|
|
4
|
-
import { ColorRamp } from '
|
|
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 '
|
|
3
|
-
import { ColorRamp } from '
|
|
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;
|
package/dist/i18n.d.ts
ADDED