Component JNC.Google.NavionicsOverlay

Acknowledgements | Not to be used for navigation
This page can't load Google Maps correctly.
Do you own this website?

Navionics NauticalChart base-overlay

  1. // The Google Map Engine options
  2. var gibilterra = new google.maps.LatLng(36.140751,-5.353585);
  3. var gMapNauticalOptions = {
  4. zoom: 14,
  5. center: gibilterra,
  6. mapTypeId: google.maps.MapTypeId.ROADMAP
  7. };
  8. // Creation of Google Map Engine
  9. var gMapNautical = new google.maps.Map(document.getElementById("nautical-map-container"), gMapNauticalOptions);
  10. //Navionics NauticalChart
  11. var navionics_nauticalchart_layer = new JNC.Google.NavionicsOverlay({
  12. navKey: "****",
  13. chartType: JNC.Google.NavionicsOverlay.CHARTS.NAUTICAL,
  14. // Enable Navionics logo with payoff
  15. logoPayoff: true,
  16. // Since we draw multiple NavionicsOverlay on the same page, we have to pass the id of the div containing every instance
  17. divId: 'nautical-map-container'
  18. });
  19. gMapNautical.overlayMapTypes.insertAt(0, navionics_nauticalchart_layer);
Acknowledgements | Not to be used for navigation
This page can't load Google Maps correctly.
Do you own this website?

Navionics SonarCharts base-overlay

  1. // The Google Map Engine options
  2. var gibilterra = new google.maps.LatLng(36.140751,-5.353585);
  3. var gMapNauticalOptions = {
  4. zoom: 14,
  5. center: gibilterra,
  6. mapTypeId: google.maps.MapTypeId.ROADMAP
  7. };
  8. var gMapNautical2 = new google.maps.Map(document.getElementById("sonar-map-container"), gMapNauticalOptions);
  9. //Navionics SonarChart
  10. var navionics_sonarchart_layer = new JNC.Google.NavionicsOverlay({
  11. navKey: "****",
  12. chartType: JNC.Google.NavionicsOverlay.CHARTS.SONAR,
  13. // Enable Navionics logo without payoff (Default behaviour)
  14. logoPayoff: false,
  15. // Since we draw multiple NavionicsOverlay on the same page, we have to pass the id of the div containing every instance
  16. divId: 'sonar-map-container'
  17. });
  18. gMapNautical2.overlayMapTypes.insertAt(0, navionics_sonarchart_layer);
Acknowledgements | Not to be used for navigation
This page can't load Google Maps correctly.
Do you own this website?

Navionics Overlays over Google Map Engine

  1. // The Navionics Headquarters position
  2. var NavionicsHeadquarters = new google.maps.LatLng(43.860170,10.238238);
  3. // The Google Map Engine options
  4. var gMapEngineOptions = {
  5. zoom: 15,
  6. center: NavionicsHeadquarters,
  7. mapTypeControlOptions: {
  8. mapTypeIds: [
  9. JNC.Google.NavionicsOverlay.CHARTS.NAUTICAL,
  10. JNC.Google.NavionicsOverlay.CHARTS.SONAR,
  11. google.maps.MapTypeId.ROADMAP,
  12. google.maps.MapTypeId.TERRAIN,
  13. google.maps.MapTypeId.HYBRID
  14. ],
  15. style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR
  16. }
  17. };
  18. // Creation of Google Map Engine
  19. var gMapEngine = new google.maps.Map(document.getElementById("gMapEngineContainer"), gMapEngineOptions);
  20. // Creation of Navionics SonarChart Layer
  21. var navionicsSonarChartOverlay = new JNC.Google.NavionicsOverlay({
  22. navKey: "*****",
  23. chartType: JNC.Google.NavionicsOverlay.CHARTS.SONAR,
  24. isTransparent: false,
  25. // Enable Navionics logo with payoff
  26. logoPayoff: true,
  27. // Since we draw multiple NavionicsOverlay on the same page, we have to pass the id of the div containing every instance
  28. divId: 'gMapEngineContainer'
  29. });
  30. // Creation of Navionics NauticalChart Layer
  31. var navionicsNauticalChartOverlay = new JNC.Google.NavionicsOverlay({
  32. navKey: "****",
  33. chartType: JNC.Google.NavionicsOverlay.CHARTS.NAUTICAL,
  34. isTransparent: false,
  35. // Enable Navionics logo with payoff
  36. logoPayoff: true,
  37. // Since we draw multiple NavionicsOverlay on the same page, we have to pass the id of the div containing every instance
  38. divId: 'gMapEngineContainer'
  39. });
  40. // Now attach the Navionics Overlay type to the map's registry.
  41. gMapEngine.mapTypes.set(JNC.Google.NavionicsOverlay.CHARTS.SONAR, navionicsSonarChartOverlay);
  42. gMapEngine.mapTypes.set(JNC.Google.NavionicsOverlay.CHARTS.NAUTICAL, navionicsNauticalChartOverlay);
  43. // We can now set the map to use the 'NauticalCharts' map type.
  44. gMapEngine.setMapTypeId(JNC.Google.NavionicsOverlay.CHARTS.NAUTICAL);
BESbswy
BESbswy
BESbswy