Class: NavionicsOverlay

JNC.Leaflet. NavionicsOverlay

The implementation of Navionics overlay for Leaflet Maps

Name Type Description
options array | object optional

Some initialization options.

Name Type Default Description
navKey string

Map's navKey

chartType JNC.NAVIONICS_CHARTS JNC.NAVIONICS_CHARTS.NAUTICAL optional

Overlay type. Possible values: JNC.NAVIONICS_CHARTS.NAUTICAL, JNC.NAVIONICS_CHARTS.SONAR, JNC.NAVIONICS_CHARTS.SKI.

isTransparent boolean true optional

Defines if overlay tiles are transparent or not.

depthUnit JNC.DEPTH_UNIT JNC.DEPTH_UNIT.METERS optional

Depth unit type. Possible values: JNC.DEPTH_UNIT.METERS, JNC.DEPTH_UNIT.FEET.

depthLevel JNC.SAFETY_DEPTH_LEVEL JNC.SAFETY_DEPTH_LEVEL.LEVEL4 optional

Depth level type. Possible values: JNC.SAFETY_DEPTH_LEVEL.LEVEL0, JNC.SAFETY_DEPTH_LEVEL.LEVEL1, JNC.SAFETY_DEPTH_LEVEL.LEVEL2, JNC.SAFETY_DEPTH_LEVEL.LEVEL3, JNC.SAFETY_DEPTH_LEVEL.LEVEL4.

See:
Example
    var map = L.map('...')
    var overlay = new JNC.Leaflet.NavionicsOverlay({
      navKey: 'NavKey',
      chartType: JNC.NAVIONICS_CHARTS.SKI,
      isTransparent: false
    });

    overlay.addTo(map);

Extends

  • L.TileLayer