Skip to content

Commit 1c73e08

Browse files
fix(maps): link migration guide in quickstart and update prop usage
1 parent 04c366f commit 1c73e08

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

content/docs/reactivesearch/v3/advanced/analytics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ Example:
5151

5252
## Click Analytics in Map Component
5353

54-
When rendering results using `renderAllData` in `ReactiveGoogleMap` you may have to call the `triggerClickAnalytics` function by using the `_click_id` property of the result items as an argument. This method also supports the document id(optional) as the second param. If document id is not set then ReactiveSearch will calculate it based on the click position. Example:
54+
When rendering results using `render` prop in `ReactiveGoogleMap` you may have to call the `triggerClickAnalytics` function by using the `_click_id` property of the result items as an argument. This method also supports the document id(optional) as the second param. If document id is not set then ReactiveSearch will calculate it based on the click position. Example:
5555

5656
```jsx
5757
<ReactiveGoogleMap
5858
...
59-
renderAllData={(hits, loadMore, renderMap, renderPagination, triggerClickAnalytics) => {
59+
render={({data: hits, loadMore, renderMap, renderPagination, triggerClickAnalytics}) => {
6060
return(
6161
<>
6262
{hits.map(hit => (
@@ -76,7 +76,7 @@ Similarily, in `OpenStreetMap`:
7676
```jsx
7777
<ReactiveOpenStreetMap
7878
...
79-
renderAllData={(hits, loadMore, renderMap, renderPagination, triggerClickAnalytics) => {
79+
render={({data: hits, loadMore, renderMap, renderPagination, triggerClickAnalytics}) => {
8080
return(
8181
<>
8282
{hits.map(hit => (

content/docs/reactivesearch/v3/overview/reactivemaps.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ nestedSidebar: 'web-reactivesearch'
1313

1414
ReactiveMaps is a complimentary library to ReactiveSearch. Map components require ReactiveSearch architecture and its root component to begin with. If you wish to build anything on reactivemaps, you'll need to install reactivesearch along with it.
1515

16+
> Existing users can checkout the [migration guide](https://docs.appbase.io/docs/reactivesearch/v3/overview/reactivemaps-migration/) to switch to the newest version of ReactiveMaps library.
17+
1618
### Step 0: Create Boilerplate
1719

1820
In this section, we will create a search UI based on an _earthquake dataset_ with ReactiveSearch components.
@@ -132,7 +134,7 @@ Next, we will look at the [**ReactiveGoogleMap**](/docs/reactivesearch/v3/map/re
132134
react={{
133135
and: 'places',
134136
}}
135-
renderData={result => ({
137+
renderItem={result => ({
136138
label: result.mag,
137139
})}
138140
/>
@@ -194,7 +196,7 @@ class App extends Component {
194196
react={{
195197
and: 'places',
196198
}}
197-
renderData={result => ({
199+
renderItem={result => ({
198200
label: result.mag,
199201
})}
200202
/>

0 commit comments

Comments
 (0)