...
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png',{ //style URL
...
Na linha acima, o SC interpreta o {z} {x} {y} como campos Scriptcase.
Solução:
OnExecute da Blank:
$map = '{'.'z}/'.'{'.'x}/'.'{'.'y}';
echo <<<HTML
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<title>Sap Informática - Mapa Rio grande do Norte</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<style type="text/css">
#map {
height: 100%;
}
html,
body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="map">
<script>
const key = 'YOUR_MAPTILER_API_KEY_HERE';
const map = L.map('map').setView([-5.812, -35.25], 13); //starting position
L.tileLayer('https://tile.openstreetmap.org/$map.png',{ //style URL
// tileSize: 512,
// zoomOffset: -1,
// minZoom: 1,
maxZoom: 30,
}).addTo(map);
var marker = L.marker([-5.812, -35.25]).addTo(map);
</script>
</body>
</html>
HTML;
Na prática: