Search This Blog

Showing posts with label How do I Create an Airport Map Report. Show all posts
Showing posts with label How do I Create an Airport Map Report. Show all posts

Sunday, July 13, 2025

How do I Create an Airport Map Report

Introduction
Creating an Airport Map Report in Oracle APEX allows you to visually display flight paths, terminal locations, gates, runways, or service zones on a dynamic and interactive map interface. Whether you’re tracking aircraft, showing airport facilities, or analyzing geospatial airport data, Oracle APEX’s built-in map components offer a powerful and flexible solution. This guide will walk you through the detailed process of building an Airport Map Report, including data preparation, map configuration, and enhancing interactivity with tooltips and links.

How to Create an Airport Map Report in Oracle APEX

  1. Prepare the Spatial Data

    • Ensure your source table includes latitude and longitude for airport features such as terminals, gates, or runways.

    • Sample structure:

      SELECT 
        airport_id,
        facility_name,
        latitude,
        longitude,
        facility_type
      FROM airport_facilities
      
  2. Create a New Page with a Map Region

    • In Oracle APEX, go to the App Builder.

    • Add a new Map region to an existing or new page.

    • Choose the Map (Leaflet) component for easy configuration.

  3. Configure the Data Source

    • Point the map to your query or table/view.

    • Ensure the region uses columns for latitude and longitude.

    • Example query:

      SELECT 
        facility_name AS name,
        latitude,
        longitude,
        'Facility Type: ' || facility_type AS tooltip
      FROM airport_facilities
      
  4. Customize Marker Layer Settings

    • In the Marker Layer, assign:

      • Name Column: name

      • Latitude Column: latitude

      • Longitude Column: longitude

      • Tooltip Column: tooltip

    • To differentiate facility types, use the Style Expression or Icon URL field.

  5. Enhance with Interactivity

    • Add HTML links in the tooltip to navigate to a detail page.

      '<a href="f?p=&APP_ID.:30:&SESSION.::NO::P30_FACILITY_ID:' || airport_id || '">' || facility_name || '</a>'
      
    • Disable "Escape special characters" so the HTML displays correctly.

    • Set marker clustering if your data is dense, especially for large airports.

  6. Style and Refine

    • Add color coding by facility_type.

    • Use distinct icons for terminals, runways, gates, etc.

    • Optionally, overlay flight path lines using a Feature Layer with GeoJSON.

  7. Test and Deploy

    • Preview the page.

    • Hover and click on markers to verify tooltips and links.

    • Adjust zoom levels and pan constraints as needed.

 

To create a Map Report in Oracle APEX that displays airports using the AirportsLatLon table with airportname, IATACode, Latitude, and Longitude columns, follow the steps below.

Prerequisites:

The AirportsLatLon table should contain the columns: 

  • airportname (VARCHAR)

  • IATACode (VARCHAR)

  • Latitude (NUMBER)

  • Longitude (NUMBER)

Step 1: Create a New Page for the Map

  1. Click on Create to create a new page.

  2. Select Chart > Map from the options.

  3. Click Next.

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a map

AI-generated content may be incorrect.

Step 2: Configure the Map Region

  1. Choose Map Type: Select Google Maps or another map provider (e.g., OpenStreetMap). Google Maps is a common choice, but you can choose based on your needs.

A screenshot of a map

AI-generated content may be incorrect.

  1. Define the Data Source (If done manually):

    • Select SQL Query as the data source for the map.

    • Write the SQL query to pull the required data from the AirportsLatLon table. The SQL query should look like this:

SELECT airportname AS title,

       IATACode AS description,

       Latitude AS latitude,

       Longitude AS longitude

FROM AirportsLatLon;

  1. Columns Mapping:

    • Title: Set to airportname (to display the airport name in the map popup).

    • Description: Set to IATACode (to display the IATA code in the popup).

    • Latitude: Set to Latitude (the latitude of the airport).

    • Longitude: Set to Longitude (the longitude of the airport).


Result:

A map of the united states

AI-generated content may be incorrect.






A map of the united states

AI-generated content may be incorrect.


Lets add more Faceted searches

A screenshot of a computer

AI-generated content may be incorrect.


A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

A black rectangular object with a black stripe

AI-generated content may be incorrect.


A black rectangle with a red line

AI-generated content may be incorrect.


A screenshot of a computer

AI-generated content may be incorrect.


A screenshot of a computer

AI-generated content may be incorrect.


A map of the north america

AI-generated content may be incorrect.


Step 3: Set Map Region Attributes

  1. Center of the Map:

    • Set the initial center of the map to a default latitude and longitude, such as 37.7749 and -122.4194 (which corresponds to the center of the U.S., or adjust it to your preferred area).

For example, for the United States:

Latitude: 37.7749

Longitude: -122.4194

  1. Zoom Level: Set a Zoom Level that suits the geographical coverage you want (e.g., zoomed out for a continent view or zoomed in for city-level details).

    • Zoom Level: Choose a value that allows users to see multiple airports at once (e.g., 5 for regional coverage, 10 for more detailed zoom).

  2. Map Markers: Configure how the markers will be displayed on the map.

    • You can use Icons to represent different types of airports if you have that classification in your data.

    • If you do not have specific icons, APEX will use a default map marker for each airport.

  3. Popup Info: Set up the Popup Info when a user clicks on an airport marker. The popup can show details like the airport name and IATA code.

    • The Title will display the airportname.

    • The Description will display the IATACode.

Step 4: Customize Map with Additional Settings (Optional)

  1. Clustering (Optional): If your map contains a lot of airports and markers are overlapping, you can enable Marker Clustering. This will group markers together when zoomed out, improving the map’s readability.

  2. Enable Dynamic Interaction: If you want to allow users to interact with the map and select multiple filters (e.g., by region or airport code), you can add Faceted Search or Filters to the map.

  3. Adding Other Data Points: You can enhance the map with additional data, such as airport images or links to flight data.

Step 5: Save and Run the Map

  1. After configuring the map region settings, click Next and choose any additional report settings you want.

  2. Click Finish to save the page.

Step 6: Run and Preview the Report

  1. After creating the map, click Run at the top-right of the page.

  2. You should now see a map with markers representing each airport in your AirportsLatLon table. Clicking on a marker will show a popup with the airport name and IATA code.

Example SQL Query for Map Data Source

SELECT airportname AS title,

       IATACode AS description,

       Latitude AS latitude,

       Longitude AS longitude

FROM AirportsLatLon;

This query will pull the airport names, IATA codes, and coordinates (latitude and longitude) for plotting the map markers.


Additional Customization

  • Filter Data on the Map: You can add filtering options to your page (e.g., drop-downs for selecting regions or airport types) so that users can narrow down the map markers.

  • Styling: You can customize the look and feel of your map by editing the page styles or adding custom CSS.

By following these steps, you can create a Map Report in Oracle APEX that displays airport locations using the AirportsLatLon table. The markers will be placed based on the Latitude and Longitude, and clicking on each marker will show more details about the airport, such as its name and IATA code.


Faceted Report with Cards

Creating a Faceted Search Report with Cards in Oracle APEX

A faceted search report with cards in Oracle APEX allows users to refine their search dynamically using multiple filter options while displaying the results in a visually appealing card layout. This approach is useful for applications requiring interactive filtering, such as product catalogs, employee directories, or real estate listings.


Understanding Faceted Search Reports and Cards

Faceted Search Report

A faceted search is a dynamic filtering system that lets users refine data using multiple criteria. The facets appear as filter options on the side, allowing users to drill down into data by selecting relevant attributes.

Cards Report

The Cards Report displays data in a grid-like structure, where each row from a query is represented as a card with a customizable layout. It is useful for presenting information in a more visual format than standard reports.

By combining faceted search and cards, we can create an interactive and visually appealing data display in APEX.


Step 1: Creating the Faceted Search Report with Cards

1. Create a New Page

  1. Open Oracle APEX and navigate to your application.

  2. Click Create > Page.

  3. Select Faceted Search and click Next.

  4. Choose Cards as the report type.

  5. Select the table or SQL query that will provide the data.

  6. Click Next, configure the attributes as needed, and click Finish.


Step 2: Configuring the Faceted Search

Once the page is created, APEX automatically generates the faceted search region and a cards report.

1. Adding Facets

  1. Open the Faceted Search Region in Page Designer.

  2. Click + Add Facet to define a new filtering option.

  3. Choose a data column for filtering. Examples include: 

    • Category (e.g., Department, Product Type)

    • Price Range (e.g., Low, Medium, High)

    • Date (e.g., Created Date, Last Updated)

  4. Select the appropriate facet type

    • Checkbox List: Multiple selections

    • Range Slider: For numerical values like price

    • Date Picker: For filtering by date

  5. Configure the display settings, labels, and sorting.

  6. Click Apply Changes.


Step 3: Configuring the Cards Report

1. Customizing the Card Appearance

  1. Open the Cards Report region in Page Designer.

  2. Under Appearance, customize: 

    • Card Title: Select the column to display as the card title.

    • Card Body: Choose additional columns for description or details.

    • Card Media: Assign an image column if available.

    • Card Actions: Add buttons or links for user interaction.

2. Adjusting the Card Layout

  1. Under Attributes, modify the number of cards per row.

  2. Choose different layouts like Grid, Floating, or Stacked.

  3. Enable Lazy Loading to improve performance on large datasets.


Step 4: Enhancing with Dynamic Actions

1. Refreshing Cards When a Facet Changes

  1. Go to Faceted Search Region in Page Designer.

  2. Under Dynamic Actions, create a new action: 

    • Event: Facet Value Changed

    • Action: Refresh

    • Affected Element: Cards Report

This ensures that selecting a facet automatically refreshes the results without a full-page reload.


Step 5: Adding Custom Styling with CSS

For a more refined appearance, apply CSS styling to modify the card design.

1. Adding CSS to Improve Card Display

  1. Navigate to Shared Components > Themes > Custom CSS.

Add custom CSS:

.t-Card {

    border-radius: 10px;

    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease-in-out;

}


.t-Card:hover {

    transform: scale(1.05);

}

This enhances the card appearance with rounded corners, shadows, and a hover effect.


Step 6: Testing the Faceted Search Report with Cards

  1. Click Run Page in APEX.

  2. Use the facet filters to refine the data dynamically.

  3. Observe how the results update within the card layout.

  4. Adjust facets and styling as needed for an optimal user experience.


Best Use Cases for Faceted Reports with Cards

  • Product Catalogs: Allows filtering by category, price, and availability.

  • Employee Directories: Filters employees by department, role, and location.

  • Real Estate Listings: Enables searches based on price, location, and property type.

  • Event Listings: Allows filtering by date, category, and venue.


A faceted search report with cards in APEX provides an interactive and user-friendly way to display data. By integrating filters, dynamic actions, and CSS styling, you can create a highly functional and visually appealing report.

This approach improves usability, enhances data exploration, and offers a modern, responsive interface.




EXAMPLE:

A screenshot of a computer

Description automatically generated


A screenshot of a computer

Description automatically generated


A screenshot of a computer

Description automatically generated


Conclusion
An Airport Map Report in Oracle APEX not only brings geospatial clarity to complex airport operations but also enhances user navigation and data interaction. With just a few steps—setting up your data, configuring the map region, and enabling interactivity—you can transform raw coordinates into a dynamic, navigable report. This visual tool becomes especially valuable in aviation apps where location-based data is central to operational insights and decision-making.


How Do I Make a Faceted Search Map Page in Oracle APEX

Combining faceted search with a map region in Oracle APEX enables users to filter data visually and spatially at the same time. This design ...