<!DOCTYPE html>
<html>
<head>
<title>i-Boating :Change base map to OSM</title>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel='stylesheet' href='https://fishing-app.gpsnauticalcharts.com/i-boating-fishing-marine-navigation-sdk/5.5/blc-maps.css?rand=1695425337' />
<style>
body { margin: 0; padding: 0; }
html, body, #map { height: 100%; touch-action:none;}
</style>
</head>
<body>
<div id='map'></div>
<script src='https://fishing-app.gpsnauticalcharts.com/i-boating-fishing-marine-navigation-sdk/5.5/blc-maps.js?rand=1695425337'></script>
<script>
window.onload = function() {
var options =
{
container: 'map',
zoom: 12.5,
blc_access_token:'YOUR_ACCESS_TOKEN_HERE',
center: [-122.3889607,37.8115202]
}
var map = blcgl.external_to_js.blcCreateMapObject(options);
map.on('load', function() {
var rasterSourceJson = {
"maxzoom": 15,
"minzoom": 0,
"tileSize": 256,
"name": "OSM",
"scheme": "xyz",
"tiles": [ "https://a.tile.openstreetmap.org/{z}/{x}/{y}.png" , "https://b.tile.openstreetmap.org/{z}/{x}/{y}.png" , "https://c.tile.openstreetmap.org/{z}/{x}/{y}.png" ] };
map.blcChangeBaseMap(rasterSourceJson);
});
}
</script>
</body>
</html>
New! i-Hunting Topo Maps now available -
iPhone / iPad Marine Navigation App and WMTS App are now available -
New! Macbook ChartPlotter, and Windows Marine Navigation App now available -