Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

LauryNov 19 2022 — edited May 13 2023

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

Comments

Post Details

Added on Nov 19 2022
0 comments
329 views