/* * Copyright (C) 2022 Hal Perkins. All rights reserved. Permission is * hereby granted to students registered for University of Washington * CSE 331 for use solely during Spring Quarter 2021 for purposes of * the course. No other use, copying, distribution, or modification * is permitted without prior written consent. Copyrights for * third-party components of this work must be honored. Instructors * interested in reusing these course materials should contact the * author. */ import { LatLngExpression } from "leaflet"; import React, { Component } from "react"; import { MapContainer, TileLayer } from "react-leaflet"; import "leaflet/dist/leaflet.css"; import MapLine from "./MapLine"; import { ColoredEdge } from "./types"; import { UW_LATITUDE, UW_LONGITUDE } from "./Constants"; const position: LatLngExpression = [UW_LATITUDE, UW_LONGITUDE]; interface MapProps { edgeList: ColoredEdge[]; // edges to be drawn } interface MapState {} class Map extends Component { render() { return (
{ // TODO undo for example 4 onward // Render map lines here // [, // , // ] }
); } } export default Map;