septima-widget 0.0.0-dev-ba761

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.
Files changed (2) hide show
  1. package/README.md +36 -0
  2. package/package.json +12 -0
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # Septima Widget API
2
+
3
+ [Septima Widget](https://septima.dk/widget/) is a simple way to add interactive maps on the web. It is a commercial API. Please contact us at kontakt@septima.dk for more info.
4
+
5
+ ## Getting Started
6
+
7
+ Install the [`septima-widget` package](https://www.npmjs.com/package/septima-widget):
8
+
9
+ ```
10
+ npm install septima-widget
11
+ ```
12
+
13
+ Import WidgetAPI in your application:
14
+
15
+ ```js
16
+ import WidgetAPI from 'septima-widget';
17
+
18
+ new WidgetAPI('#map', {
19
+ "map": {
20
+ "view": {
21
+ "zoomLevel": 10,
22
+ "x": 724413,
23
+ "y": 6175985
24
+ },
25
+ "layer": [
26
+ {
27
+ "namedlayer": "#dk_standard",
28
+ }
29
+ ]
30
+ }
31
+ });
32
+ ```
33
+
34
+ ## Documentation
35
+
36
+ Check out the [examples](https://widget.cdn.septima.dk/latest/examples.html) and the [documentation](https://widget.cdn.septima.dk/latest/api.html) (in Danish).
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "septima-widget",
3
+ "version": "0.0.0-dev-ba761",
4
+ "description": "Septima Widget API",
5
+ "type": "module",
6
+ "main": "./widgetapi.js",
7
+ "module": "./widgetapi.mjs",
8
+ "exports": {
9
+ "default": "./widgetapi.mjs"
10
+ },
11
+ "license": "UNLICENSED"
12
+ }