Class: NavionicsOverlay

JNC.Google. NavionicsOverlay

Show Navionics Maps in to Google Maps technologies

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.

theme int optional

Choose a theme of Map

logoPayoff boolean false optional

Show Navionics logo without payoff (default behaviour)

divId string null optional

This parameter is required only when you want to draw multiple gNavionicsOverlay objects on the same page but on different divs. In this case, for every gNavionicsOverlay instantiated, set the id of the div containing the instance. If you omit this parameter, then logo and acknowledgement elements will be drawn on the same way.

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
        <script>
        // The Google Map Engine options
        var gibilterra = new google.maps.LatLng(36.140751,-5.353585);
        var gMapNauticalOptions = {
            zoom: 14,
            center: gibilterra,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        // Creation of  Google Map Engine
        var gMapNautical = new google.maps.Map(document.getElementById("nautical-map-container"), gMapNauticalOptions);

        //Navionics NauticalChart
        var navionics_nauticalchart_layer = new JNC.Google.NavionicsOverlay({
            navKey: "****",
            chartType: JNC.Google.NavionicsOverlay.CHARTS.NAUTICAL
        });

        gMapNautical.overlayMapTypes.insertAt(0, navionics_nauticalchart_layer);

        </script>

Members

staticJNC.Google.NavionicsOverlay.NavionicsOverlay.CHARTS

The enumeration with supported overlay types.