Skip to content

Latest commit

 

History

History
15 lines (15 loc) · 1.27 KB

readme.MD

File metadata and controls

15 lines (15 loc) · 1.27 KB

External Libraries

It imports Leaflet, Esri Leaflet, ArcGIS REST JS, and Esri Leaflet Geocoder libraries from content delivery networks (CDNs).

Tile Layer

It sets up a tile layer using OpenStreetMap tiles and adds it to the map.

Search Interface

Users can search for classrooms by entering a query in an input field and clicking a "Search" button. The search triggers a JavaScript function searchClassroom().

Classroom Information Display

When a classroom is found, its details like building, floor, room number, and capacity are displayed in a table. The relevant information is fetched using the getClassroomInfo() function.

Building and Classroom Information Tables

The page includes hidden tables with information about buildings, floors, and classrooms. These tables serve as a data source for searching and displaying classroom information.

JavaScript Functions:

  • showPlaces(category): Displays places of a specified category on the map using Esri Leaflet Geocoding.
  • updateRoute(): Updates the route between two points on the map using ArcGIS REST JS routing service.
  • searchClassroom(): Searches for a classroom entered by the user and displays its information.
  • getClassroomInfo(classroom): Retrieves information about a classroom from a predefined list of classrooms.