Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { LocationFollowingIcon, LocationNoFollowIcon } from "./icons";
import IconButton from "./IconButton";
import withNavigationFocus from "../lib/withNavigationFocus";
import type {
LocationContextType,
PositionType
} from "../context/LocationContext";
import type { ObservationsMap } from "../context/ObservationsContext";
import bugsnag from "../lib/logger";
import config from "../../config.json";
import Loading from "./Loading";
MapboxGL.setAccessToken(config.mapboxAccessToken);
// Forces Mapbox to always be in connected state, rather than reading system
// connectivity state
MapboxGL.setConnected(true);
const mapboxStyles = {
observation: {
circleColor: "#F29D4B",
circleRadius: 5,
circleStrokeColor: "#fff",
circleStrokeWidth: 2
}
};
type ObservationFeature = {
type: "Feature",
geometry: {
type: "Point",
coordinates: [number, number] | [number, number, number]
},