diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-02-21 10:45:11 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-02-21 10:45:11 +0100 |
| commit | de737c54c413f96c35b4e9bc6280fc7d26e4fa83 (patch) | |
| tree | 0cf470c59b4c7c8a6327e64610f68f5facd78d6d /app/components/SvgMap.js | |
| parent | ae9c255b3ecdec341090c932db6cb261147a7382 (diff) | |
| parent | 1214138633bcca19a1b96622400f3fbcf4044bd9 (diff) | |
| download | mullvadvpn-de737c54c413f96c35b4e9bc6280fc7d26e4fa83.tar.xz mullvadvpn-de737c54c413f96c35b4e9bc6280fc7d26e4fa83.zip | |
Merge branch 'update-flow'
Diffstat (limited to 'app/components/SvgMap.js')
| -rw-r--r-- | app/components/SvgMap.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/components/SvgMap.js b/app/components/SvgMap.js index 2803f0c4ef..48288f9a8a 100644 --- a/app/components/SvgMap.js +++ b/app/components/SvgMap.js @@ -1,6 +1,6 @@ // @flow -import React, { Component } from 'react'; +import * as React from 'react'; import { ComposableMap, ZoomableGroup, Geographies, Geography, Markers, Marker } from 'react-simple-maps'; import { geoTimes } from 'd3-geo-projection'; @@ -44,9 +44,8 @@ type SvgMapState = { const MOVE_SPEED = 2000; // @TODO: Calculate zoom level based on (center + span) (aka MKCoordinateSpan) -export default class SvgMap extends Component { - props: SvgMapProps; - state: SvgMapState = { +export default class SvgMap extends React.Component<SvgMapProps, SvgMapState> { + state = { zoomCenter: [0, 0], zoomLevel: 1, visibleCities: [], |
