This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,899 Users
  • 2,269,649 Discussions
  • 7,916,821 Comments

Discussions

How to get a point coordinate on a map on an HTML page

Laury
Laury Member Posts: 1,672 Silver Badge

Hi,

I am working with Oracle APEX 22.2.

I have an HTML page hat contains the following code to print a map:

---

<html>

 <head>

    <script src="https://api.mqcdn.com/sdk/mapquest-js/v1.3.2/mapquest.js"></script>

    <link type="text/css" rel="stylesheet" href="https://api.mqcdn.com/sdk/mapquest-js/v1.3.2/mapquest.css"/>

  <script type="text/javascript">

   window.onload = function() {

    L.mapquest.key = '&P20_KEY.';

    var map = L.mapquest.map('map', {

      center: [&P20_LAT., &P20_LON.],

     layers: L.mapquest.tileLayer('map'),

     zoom: 17

    });

    map.addControl(L.mapquest.control());

   }

  </script>

 </head>

 <body style="border: 0; margin: 0;">

  <div id="map" style="width: 100%; height: 530px;"></div>

 </body>

</html>

---

With that piece of code, I get the map on the page, but I would like to have a point-icon that points to the location for P20_LAT., &P20_LON..

Does someone know what the syntax is to achive this result and where to put it in the above code?

Thanks by advance.

Kind Regards