Skip to content

Commit

Permalink
more css fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0x41head committed May 30, 2024
1 parent 1635d2b commit ea2b114
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions src/components/DriveMap/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,25 +164,6 @@ class DriveMap extends Component {
}
}

onInteraction(event){
console.log(event)
// console.log(type)

// this.setState({ viewport:viewState });

// if (type=="move") {
// this.shouldFlyTo = true;
// this.isInteracting = true;

// if (this.isInteractingTimeout !== null) {
// clearTimeout(this.isInteractingTimeout);
// }
// this.isInteractingTimeout = setTimeout(() => {
// this.isInteracting = false;
// }, INTERACTION_TIMEOUT);
// }
}

setPath(coords) {
const map = this.map && this.map.getMap();

Expand Down Expand Up @@ -310,7 +291,7 @@ class DriveMap extends Component {
return (
<div ref={this.onRef} className="h-full cursor-default w-full min-h-[300px]">
<Map
style={{width: "100%", height: "100%"}}
style={{width: "100%", height: "100%", minHeight:"300px"}}
latitude={viewport.latitude}
longitude={viewport.longitude}
zoom={viewport.zoom}
Expand All @@ -322,7 +303,6 @@ class DriveMap extends Component {
dragRotate={false}
onMove={this.onMove}
attributionControl={false}
onError={(err) => console.log("err",err)}
/>
</div>
);
Expand Down

0 comments on commit ea2b114

Please sign in to comment.