Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <link rel="stylesheet" href="" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin="" />

<script src="" integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew==" crossorigin=""></script>

<div id="map"></div>


  margin: 0;
  padding: 0;

#map {
  width: 100vw;
  height: 100vh; 


                const map ='map',{scrollWheelZoom:false}).setView([-29.50, 145], 3.5);

const basemaps = { 
  StreetView: L.tileLayer('https://{s}{z}/{x}/{y}.png',   {attribution: '&copy; <a href="">OpenStreetMap</a> contributors'}),
  Topography: L.tileLayer.wms('',   {layers: 'TOPO-WMS'}),
  Places: L.tileLayer.wms('', {layers: 'OSM-Overlay-WMS'})



const basicBeachIcon = L.icon({iconUrl: '', iconSize: [25, 25], // size of the icon

const marker1 = L.marker([-37.699450, 176.279420], {icon: basicBeachIcon})
            .bindPopup('Whitehaven Beach, Whitsunday Island')
const marker2 = L.marker([-27.643310, 153.305140], {icon: basicBeachIcon})
  .bindPopup('Turquoise Bay Exmouth, Australia')
const marker3 = L.marker([-33.956330, 122.150270], {icon: basicBeachIcon})
  .bindPopup('Cape Le Grand National Park Esperance, Australia')
const marker4 = L.marker([-34.962390, 117.391220], {icon: basicBeachIcon})
  .bindPopup('Greens Pool Denmark, Australia')
const marker5 = L.marker([-17.961210, 122.214820], {icon: basicBeachIcon})
  .bindPopup('Cable Beach Broome, Australia')
const marker6 = L.marker([-16.505960, 151.751520], {icon: basicBeachIcon})
  .bindPopup('Matira Beach, Society Islands')
const marker7 = L.marker([-22.594400, 167.484440], {icon: basicBeachIcon})
  .bindPopup('Piscine Naturelle Ile Des Pins, New Caledonia')
const marker8 = L.marker([-37.977000, 177.057000], {icon: basicBeachIcon})
  .bindPopup('Ohope Beach Whakatane, New Zealand')
const marker9 = L.marker([-41.037600, 173.017000], {icon: basicBeachIcon})
  .bindPopup('Kaiteriteri Beach, New Zealand')
const marker10 = L.marker([-37.670300, 176.212000], {icon: basicBeachIcon})
  .bindPopup('Mt Maunganui Main Beach, New Zealand')