Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

111
Views
How to add leafletjs to r leaflet map for Navionics Overlays?

I am trying to create a leaflet map in shiny that displays the navionics overlays, but I have zero experience in javascript. How do I add the below javascript to my leaflet map in R?

Please heeeeelp!

Javascript:

var map = L.map('nautical-non-transparent-map-container');
var overlay=new JNC.Leaflet.NavionicsOverlay({
    navKey: 'navionics_key',
    chartType: JNC.NAVIONICS_CHARTS.NAUTICAL,
    isTransparent: false,
    // Enable Navionics logo without payoff (default behaviour)
    logoPayoff: false
    zIndex: 1
});
map.setView([36.140751,-5.353585], 14);
overlay.addTo(map);

Basic leaflet map

library(leaflet)

leaflet(options = leafletOptions( zoomControl = TRUE, dragging = TRUE))%>%
  addTiles(group = "Open Street Map")%>%
  fitBounds(121.8, -33.9, 122.3, -33.96)
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!