Skip to content

Commit

Permalink
test(snapshot): Update snapshots to reflect recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorgerhardt committed May 30, 2017
1 parent 6715a0d commit f8af92a
Show file tree
Hide file tree
Showing 2 changed files with 714 additions and 77 deletions.
4 changes: 2 additions & 2 deletions src/components/map.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// @flow
import {Browser, LatLng} from 'leaflet'
import {mapbox} from 'mapbox.js'
import React, {PureComponent} from 'react'
import {
GeoJson,
Expand Down Expand Up @@ -210,11 +209,12 @@ export default class Map extends PureComponent<void, Props, State> {
}
}

mapbox.accessToken = process.env.MAPBOX_ACCESS_TOKEN
class MapboxGeoJson extends GeoJson {
componentWillMount () {
const {mapbox} = require('mapbox.js')
super.componentWillMount()
const {data} = this.props
mapbox.accessToken = process.env.MAPBOX_ACCESS_TOKEN
this.leafletElement = mapbox.featureLayer(data)
}
}
Loading

0 comments on commit f8af92a

Please sign in to comment.