<!DOCTYPE html>
<html lang="en">
<head>
<title>i-Boating : Using Bing Maps to render a Nautical Chart.</title>
<meta charset="utf-8" />
<link rel="shortcut icon" href="/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="This sample shows how to use a canvas to create a custom rendering layer." />
<meta name="keywords" content="Microsoft maps, map, gis, API, SDK, Bing, Bing Maps" />
<meta name="author" content="Microsoft Bing Maps" />
<meta name="screenshot" content="screenshot.jpg" />
<!-- Nautical Mapping -->
<link rel='stylesheet' href='https://fishing-app.gpsnauticalcharts.com/i-boating-fishing-marine-navigation-sdk/5.5/blc-maps.css?rand=1695425337' />
<script src='https://fishing-app.gpsnauticalcharts.com/i-boating-fishing-marine-navigation-sdk/5.5/blc-maps.js?rand=1695425337'></script>
<script>
var map;
function GetMap() {
map = new Microsoft.Maps.Map('#myMap', {
center: new Microsoft.Maps.Location(37.8198922,-122.3851759),
zoom:12,
disableBirdseye:true,
disableStreetside:true
});
//Register the custom module.
Microsoft.Maps.registerModule('BlcNauticalOverlayModule', 'https://fishing-app.gpsnauticalcharts.com/i-boating-fishing-marine-navigation-sdk/5.5/BlcNauticalOverlayModule.js?rand=1695425337');
//Load the module.
Microsoft.Maps.loadModule('BlcNauticalOverlayModule', function () {
var overlay = new BlcNauticalOverlay(
map,
{
blc_access_token:'YOUR_ACCESS_TOKEN_HERE',
blc_background_map: 'none'
}
);
//Add the custom overlay to the map.
map.layers.insert(overlay);
});
}
</script>
</head>
<body>
<div id="myMap" style="position:relative;width:100%;height:100%;"></div>
<script src ="https://www.bing.com/api/maps/mapcontrol?callback=GetMap&key=BING_KEY_HERE">
</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 -