WMS (Web Map Service) in Oracle APEX

  Setting up a WMS (Web Map Service) in Oracle APEX involves several steps to ensure your map data from Oracle Spatial Studio is displayed correctly. 

Step 1: Publish Your Map in Oracle Spatial Studio

Before we configure Oracle APEX, ensure that your map is published in Oracle Spatial Studio.


Open Oracle Spatial Studio and navigate to your treasure map project.

Click Publish (usually in the top-right corner).

Choose WMS as the service type and copy the generated URL. Example:

https://yourserver/spatialstudio/wms/yourmap

Step 2: Prepare Your APEX Application

Log in to Oracle APEX.


Go to your Oracle APEX workspace.

Create a New Application:


If you don’t already have an app, create a new one by clicking Create > New Application.

Add a name, e.g., Treasure Map Adventure.

Add a Page for the Map:


Add a Map Region page type when creating the app.

Alternatively, you can add a Map Region to an existing application.

Step 3: Configure the Map Region

Edit the Map Region:


Open the newly added Map Region page in Page Designer.

Set Data Source:


Select the Map Region in the Layout tree.

Under Region Source, choose Web Map Service (WMS).

Enter the WMS Service URL:


Paste the WMS URL from Oracle Spatial Studio into the WMS URL field.

Configure the Layers:


Click Add Layer to specify the layers you want to display:

For treasure spots, select the layer representing points.

For paths, select the layer representing lines.

For forests or other regions, select the layer representing polygons.

Set friendly Layer Names for each (e.g., "Treasure Locations," "Paths," "Forests").

Set Map Options:


Adjust Zoom Levels and the Default Center of the map based on your treasure map’s data.

Example:

Default Center: Latitude = 25.276987, Longitude = 55.296249.

Zoom Level: 10.

Step 4: Test Your Map

Save the page and run your APEX app.

Navigate to the page with the map region.

The WMS layers from Oracle Spatial Studio should display as a fully interactive map.

Step 5: Enhance the Map (Optional)

Add Labels:


Add labels to treasure spots, such as "X Marks the Spot."

In the layer settings, enable Labels and set a suitable font style.

Add Interactivity:


Configure actions to display additional information when users click on treasures or paths.

Example: Use Dynamic Actions to show a popup with treasure details.

Style the Map:


Use the Advanced Options in the Map Region settings to customize the style, colors, and appearance.

Step 6: Handle Authentication (if required)

If your Oracle Spatial Studio WMS service requires authentication:


Use APEX Web Credentials to store your WMS service credentials securely.


Navigate to Shared Components > Web Credentials and create a new entry with your Spatial Studio credentials.

Reference these credentials in the WMS settings.

Ensure your APEX app has access to the WMS server by verifying firewall or network configurations.

Comments

Popular posts from this blog

JavaScript In Oracle APEX (Client Side)

Installation of Oracle Database 23ai and APEX 24.2 and ORDS 24.4 on Windows Step-by-Step

Building a Fully Local AI-Powered Assistant with Oracle APEX and Vector Search #APEXCONN2025 #orclAPEX

Configuration of ORDS: Standalone, Tomcat, and WebLogic on Windows Step-by-Step

✔ RTL Map Region Labels APEX 24.2 & 🌍GeoCoding

Building an AI-Powered Resume Matching System Using Oracle APEX and 23ai Vector Search😎

Oracle JET and Oracle APEX are best friends💕

Vector Tiles in Oracle Spatial 23

What is SYS.ODCI (SYS.ODCINumberList or SYS.ODCIVarchar2List) and How Can Use it in APEX ?

My Experience at Oracle CloudWorld Tour in Frankfurt – April 10, 2025