Skip to content

Commit 772a88e

Browse files
committed
fix: getView
1 parent 3ee8043 commit 772a88e

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

docs/configure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Configuration options
22

3-
## Layers on the Map
3+
## Layers
44

55
<img align="right" src="images/config-map2.png">
66
<img align="right" src="images/config-map1.png" >
@@ -15,7 +15,7 @@ Be careful not to add to many layers because in some cases all data is loaded be
1515
There are many places where you can find open data sources serving information GEO data. For a starting point look at this [Wiki Page](https://en.wikipedia.org/wiki/List_of_GIS_data_sources)
1616
<br clear="right"/>
1717

18-
### Layer options
18+
### options
1919

2020
|Level|Option|Description|
2121
|---|---|---|

docs/images/tutorial-step3.png

19.1 KB
Loading

docs/tutorial.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ localStorage.setItem('draw',features)
2929
```
3030
<br clear="right"/>
3131

32-
## Step 3 - Connect onPage load event
33-
<img src="images/tutorial-step3.png" >
32+
## Step 3 - Connect onInit load event
3433

35-
On the bottom of your screen within the `Data Queries` click on `+New` and select `Run Javascript Code`, change the trigger when to `When the Application (Page) loads` and copy the code below into the code box.
34+
<img align="right" src="images/tutorial-step3.png" >
35+
36+
Add an new interaction by clicking `+Add` on the right side of Event Handlers. Select the `onInit` event and for Action `Run Javascript`. Copy the javascript below into the script field. This javascript load the information stored for the draw value into the layer.
3637

3738
```js
3839
geo1.setFeatures('draw',localStorage.values.draw,true)
39-
return localStorage.values.draw
4040
```
41+
<br clear="right"/>
4142

4243
## Step 4 - Start drawing
4344

src/FeaturesControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function featureControl(config?: any) {
2121
Object.keys(initConfig).forEach((k: string, index: any) => {
2222
childrenMap[k] = withDefault(BoolPureControl, initConfig[k])
2323
})
24-
//Class is rebuiled not retuning same class
24+
//Class is rebuild not retuning same class
2525
class FeatureControlTemp extends new MultiCompBuilder(childrenMap, (props: any) => props)
2626
.setPropertyViewFn((children: any) => (<></>))
2727
.build() {

0 commit comments

Comments
 (0)