import React, {Profiler} from "react"; import MapGL from "./../maps/MapGL"; import {measureTime} from './../helpers/measureTime'; import {CustomInput, Input} from "reactstrap"; import {mapTestState} from "./../config/variables" import { createRandomMarkers, calcMarkerPosition, changeSwitch, setNoOfMarkers } from "./../helpers/randomMarkers"; importĀ { didMountSwitchLatLng, componentDidUpdate, componentWillUnmount } from "./../helpers/testLifecycle" export default class MapGLs extends React.Component{ constructor(props) { super(props) this.state = mapTestState this.measurementsDiv = React.createRef() this.markerInfoDiv = React.createRef() this.createRandomMarkers = createRandomMarkers.bind(this) this.calcMarkerPosition = calcMarkerPosition.bind(this) this.changeSwitch = changeSwitch.bind(this) this.setNoOfMarkers = setNoOfMarkers.bind(this) this.componentDidUpdate = componentDidUpdate.bind(this) this.componentWillUnmount = componentWillUnmount.bind(this) } componentDidMount() { didMountSwitchLatLng(this, true) } render(){ return (
{this.state.currStep} steps
Number of Markers: {this.state.noOfMarkers}
this.setNoOfMarkers(e, true)} value={this.state.noOfMarkers}/>
); } }