<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/[email protected]/en/v6.3.1/css/ol.css" type="text/css">
<script src="https://cdn.jsdelivr.net/gh/openlayers/[email protected]/en/v6.3.1/build/ol.js"></script>
<style>
            body { margin:0px; padding:0px; }
            #map { position:absolute; top:0px; bottom:0px; width:100%; }
        </style>
<script src="https://unpkg.com/[email protected]/dist/olms.js" type="text/javascript"></script>
<title>Basic Usage</title>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
            var key = 'pk.a5c3fbf2119bfb2275b62eddbccd76b3';   //Insert your LocationIQ access token here

            olms('map','https://tiles.locationiq.com/v3/streets/vector.json?key='+key).then(function(map) {
                    
                    //Set the view for this map.
                    map.setView(new ol.View({
                    center: ol.proj.fromLonLat([-122.42, 37.779]),
                    zoom: 12
                }));
            });  
        </script>
</body>
</html>