@delta10/atlas-sdk 0.1.5 → 0.1.8
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 -7
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -14,8 +14,8 @@ npm install @delta10/atlas-sdk
|
|
|
14
14
|
|
|
15
15
|
```vue
|
|
16
16
|
<script setup lang="ts">
|
|
17
|
-
import { ref } from 'vue'
|
|
18
|
-
import Map from '@delta10/atlas-sdk'
|
|
17
|
+
import { ref, onMounted } from 'vue'
|
|
18
|
+
import { Map } from '@delta10/atlas-sdk'
|
|
19
19
|
import '@delta10/atlas-sdk/style.css'
|
|
20
20
|
import type { LayerConfig, InteractionsConfig } from '@delta10/atlas-sdk'
|
|
21
21
|
|
|
@@ -52,6 +52,18 @@ const baseLayers: LayerConfig[] = [
|
|
|
52
52
|
}
|
|
53
53
|
]
|
|
54
54
|
|
|
55
|
+
const toggleableLayers: LayerConfig[] = [
|
|
56
|
+
{
|
|
57
|
+
type: 'wms',
|
|
58
|
+
options: {
|
|
59
|
+
identifier: 'bag-pand-bouwjaar',
|
|
60
|
+
title: 'BAG Pand Bouwjaar',
|
|
61
|
+
url: 'https://maps.zaanstad.nl/geoserver/wms',
|
|
62
|
+
layer: 'geo:bag_pand_bouwjaar'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
|
|
55
67
|
const interactions: InteractionsConfig = {
|
|
56
68
|
selectable: {
|
|
57
69
|
enabled: true,
|
|
@@ -85,6 +97,7 @@ const onFeatureModified = (event: any) => {
|
|
|
85
97
|
<Map
|
|
86
98
|
ref="mapRef"
|
|
87
99
|
:layers="layers"
|
|
100
|
+
:toggleableLayers="toggleableLayers"
|
|
88
101
|
:baseLayers="baseLayers"
|
|
89
102
|
:interactions="interactions"
|
|
90
103
|
@featureSelected="onFeatureSelected"
|
|
@@ -93,10 +106,6 @@ const onFeatureModified = (event: any) => {
|
|
|
93
106
|
/>
|
|
94
107
|
</div>
|
|
95
108
|
</template>
|
|
96
|
-
|
|
97
|
-
<style>
|
|
98
|
-
@import '@delta10/atlas-sdk/style.css';
|
|
99
|
-
</style>
|
|
100
109
|
```
|
|
101
110
|
|
|
102
111
|
## Map Component
|
|
@@ -141,7 +150,7 @@ Complete example in a Vue component:
|
|
|
141
150
|
```vue
|
|
142
151
|
<script setup lang="ts">
|
|
143
152
|
import { ref, onMounted } from 'vue'
|
|
144
|
-
import Map from '@delta10/atlas-sdk'
|
|
153
|
+
import { Map } from '@delta10/atlas-sdk'
|
|
145
154
|
import type { LayerConfig } from '@delta10/atlas-sdk'
|
|
146
155
|
|
|
147
156
|
const mapRef = ref()
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delta10/atlas-sdk",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -28,12 +28,14 @@
|
|
|
28
28
|
"build:lib": "vue-tsc -b && vite build --mode library && vue-tsc --noEmit false --declaration --emitDeclarationOnly --outDir dist -p tsconfig.app.json",
|
|
29
29
|
"preview": "vite preview"
|
|
30
30
|
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"vue": ">=3.2.0 <4"
|
|
33
|
+
},
|
|
31
34
|
"dependencies": {
|
|
32
35
|
"ol": "10.7.0",
|
|
33
36
|
"ol-contextmenu": "5.5.0",
|
|
34
37
|
"ol-ext": "4.0.37",
|
|
35
38
|
"proj4": "2.20.2",
|
|
36
|
-
"vue": "3.5.24",
|
|
37
39
|
"vue3-openlayers": "12.2.2"
|
|
38
40
|
},
|
|
39
41
|
"devDependencies": {
|