Component JNC.Views.BoatingNavionicsMap

Configure the map

Example of how embedding the boating map into web page. The dimension of map is 320x568 pixel (IPhone 5 size)







The code

    

var webapi = new JNC.Views.BoatingNavionicsMap({
tagId: '.test_map_div',
center: [  12.0, 46.0 ],
navKey: '****',
bingKey: '****',
// Enable Navionics logo without payoff (default behaviour)
logoPayoff: false
});

// You can disable the control by options or with explicit function.

// example disable LayerControl
webapi.showLayerControl(false);

// example disable ZoomControl
webapi.showZoomControl(false);

// example disable DistanceControl
webapi.showDistanceControl(false);

// example disable SonarControl
webapi.showSonarControl(false);