Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrundritt committed Oct 1, 2020
1 parent 2e4d23d commit 4fcc0e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ A control that provides a form for requesting a route range. Adds a marker to th

The following shows how to create an instance of the `SelectionControl` class, connect it to a data source and add it to a map.

```JavaScript
```javascript
//Create a data source and add it to the map.
datasource = new atlas.source.DataSource();
map.sources.add(datasource);
Expand Down Expand Up @@ -121,7 +121,7 @@ This control only uses a `non-fixed` position when being added to the map. If a
The `RouteRangeControl` class is used by the selection control under the hood, but it can also be used directly if this is the only control needed. Here is an example.
```JavaScript
```javascript
//Create an instance of the route range control.
var control = new atlas.control.RouteRangeControl({
style: 'auto'
Expand Down

0 comments on commit 4fcc0e8

Please sign in to comment.