Skip to content

Commit

Permalink
Merge pull request #46 from dmartine/mapviewdoc
Browse files Browse the repository at this point in the history
add extraprops
  • Loading branch information
qlqllu authored Nov 5, 2020
2 parents 84f9367 + c554473 commit 26b1e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/widgets/map-view/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Using the `mapContainer` property the `React.createRef<HTMLDivElement>()` method
to interfaces such as `MapView`, `WebMap`, and `__esri.WatchHandle` coming from the ArcGIS API for JavaScript. In addition, the `MapViewManager` class is used to get the instance of the app's mapview manager.
```javascript

export default class Widget extends React.Component<AllWidgetProps<{}>, {}>{
export default class Widget extends React.PureComponent<AllWidgetProps<{}> & ExtraProps, {}>{
mapContainer = React.createRef<HTMLDivElement>();
mapView: MapView;
webMap: WebMap;
Expand All @@ -20,7 +20,7 @@ export default class Widget extends React.Component<AllWidgetProps<{}>, {}>{


```
The `webmapDS.map`, is the data source and `this.mapContainer.current` is a reference to the node created using `React.createRef()`. Basically, these are the properties that are passed into the constructor for the MapView using the interace for `MapViewProperties`.
The `webmapDS.map`, is the data source and `this.mapContainer.current` is a reference to the node created using `React.createRef()`. Basically, these are the properties that are passed into the constructor for the MapView using the interface for `MapViewProperties`.
```javascript

const options: __esri.MapViewProperties = {
Expand Down

0 comments on commit 26b1e39

Please sign in to comment.