Skip to content

Commit

Permalink
fix(leaflet): more leaflet 1.0 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Mar 6, 2017
1 parent 4e61963 commit 0d1e142
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 85 deletions.
81 changes: 0 additions & 81 deletions lib/public/components/MarkerCluster.js

This file was deleted.

8 changes: 4 additions & 4 deletions lib/scenario-editor/components/StopLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ and subsequently https://github.com/conveyal/scenario-editor/blob/master/lib/map

const MIN_ZOOM = 1 // don't draw stops below this zoom

import { BaseTileLayer } from 'react-leaflet'
import { point, TileLayer } from 'leaflet'
import { GridLayer } from 'react-leaflet'
import { point, Canvas } from 'leaflet'

export default class StopLayer extends BaseTileLayer {
export default class StopLayer extends GridLayer {
static defaultProps = {
minZoom: MIN_ZOOM
}

componentWillMount () {
super.componentWillMount()
this.leafletElement = new TileLayer.Canvas({
this.leafletElement = new Canvas({
// retina: '@2x',
detectRetina: true
})
Expand Down

0 comments on commit 0d1e142

Please sign in to comment.