Class: BannerNavionicsMap

JNC.Views. BannerNavionicsMap

new BannerNavionicsMap(options)

It's a component that drives to ecommerce the guest of partner user

Extension of JNC.Views.BoatingNavionicsMap usable for the publishing of Banner and promotion provided directly by Navionics

Name Type Description
options Array.<Object>

the Configuration of Map. It's possible to use the parameters of JNC.Views.BoatingNavionicsMap and JNC.Views.Map

Name Type Default Description
navKey String

Navionics key

tagId Element

The html target

zoom float 3.0 optional

The Zoom Level from 0.0 to 100.0 in according of selected Layer

center Array.<number> 10.293772,43.879257 optional

the default map center longitude,latitude

distanceUnit JNC.DISTANCE_UNIT NAUTICAL optional

set Distance Units

depthUnit JNC.DEPTH_UNIT METERS optional

set depthUnit

safetyDepth JNC.SAFETY_DEPTH_LEVEL METERS_10 optional

set safetyDepth

layer JNC.MAP_LAYERS NO_OVERLAY optional

Layer Map

DistanceUnitControl boolean true optional

Show DistanceUnitControl

DepthUnitControl boolean true optional

Show DepthUnitControl

DistanceControl boolean true optional

Show DistanceControl

LayerControl boolean true optional

Show LayerControl

SonarControl boolean true optional

Show SonarControl

ZoomControl boolean true optional

Show ZoomControl

See:
Example
      var webapi = new JNC.Views.BannerNavionicsMap({
          tagId: '.test_map_div',
          center: [ 12.0, 46.0 ],
          navKey: ****
      });

Extends

Events

inherited event:initTrackKML

Event is triggered when selected track has KML URL data

inherited KmlBalloonOpen

The event is fired for trace in GoogleAnalytics when kml balloon open.

Properties:
Name Type Description
value String

zoom direction 'zoom-in'\'zoom-out'

inherited KmlLoaded

The event is fired for trace in GoogleAnalytics when default Kml loaded.

Properties:
Name Type Description
kmlUrl String

KML url

inherited MapLoaded

The event is fired for trace in GoogleAnalytics when boating map loaded.

Properties:
Name Type Description
navKey String

Map's navKey

inherited NavionicsAcknowledgementsClicked

The event is fired for trace in GoogleAnalytics when Navionics acknowledgements clicked.

inherited NavionicsDistanceUnitClicked

The event is fired for trace in GoogleAnalytics when Navionics Depth Unit clicked.

inherited NavionicsLogoClicked

The event is fired for trace in GoogleAnalytics when Navionics logo clicked.

inherited OverlayChange

The event is fired for trace in GoogleAnalytics when map overlay changed (osm, bing, etc).

Properties:
Name Type Description
value String

overlay value (osm, bing, etc).

inherited event:resetTrackLML

Event is triggered when opened track need to be hidden

inherited event:showText

Event is triggered to show notification text

inherited ZoomControl

The event is fired for trace in GoogleAnalytics when zoom controls used.

Properties:
Name Type Description
status String

zoom direction zoom-in\zoom-out

inherited map:centerchange

Event is triggered by changing center of the map

inherited map:click

Event is triggered by map click

inherited map:mousePosition

Event is triggered by position of mouse on the map

inherited map:pointermove

Event is triggered by moving of pointer on the map

inherited map:resize

inherited map:zoomchange

Event is triggered by map zoom