cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <div id="map"></div>
<div id="coords"></div>
<!-- Replace the value of the key parameter with your own API key. -->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDq5MRv8jfKu0l4LLUR0Ozsw5_mBkK0RRY&callback=initMap">
</script>


            
          
!
            
              /* Always set the map height explicitly to define the size of the div
 * element that contains the map. */

#map {
  height: 100%;
}


/* Optional: Makes the sample page fill the window. */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#coords {
        background-color: black;
        color: white;
        padding: 5px;
      }
            
          
!
            
              var arkMapOverlay;

function initMap() {
  var map = new google.maps.Map(document.getElementById("map"), {
    zoom: 7,
    center: {
      lat: -4.5,
      lng: 4.5
    },
    mapTypeControl: false,
    streetViewControl: false,
    rotateControl: false,
    styles: [
      {
        featureType: "all",
        stylers: [
          {
            color: "#000000"
          }
        ]
      }
    ]
  });

  var imageBounds = {
    north: 0,
    south: -10,
    east: 10,
    west: 0
  };

  arkMapOverlay = new google.maps.GroundOverlay(
    "https://ark.gamepedia.com/media/ark.gamepedia.com/thumb/d/dd/Ragnarok_Map.png/800px-Ragnarok_Map.png",
    imageBounds
  );
  arkMapOverlay.setMap(map);

  var uluru = { lat: -4.64, lng: 3.11 };
  var marker = new google.maps.Marker({
    position: uluru,
    map: map,
    title: "Open Argentavis/Griffin trap at 46.4,31.1"
  });

  marker.addListener("click", function() {
    infowindow.open(map, marker);
  });

  var contentString =
    '<div id="content">' +
    '<div id="siteNotice">' +
    "</div>" +
    '<h1 id="firstHeading" class="firstHeading">Open Argentavis/Griffin trap, easy,safe</h1>' +
    '<div id="bodyContent">' +
    '<p>Made by McScruff<br>Hi all,<br><br>I have just built my trap and anyone can use it, its ideal for low level players too as its in a safe location.<br><br>For best use, make sure the generator is on and the gates are open, go to the cave entrance and spyglass which dino you want. Use ptera to agro it and let it follow you into the trap, ptera will fit out through the gaps.<br><br>Stop at the keypad and close the doors.<br><br>Can be found at 46.4,31.1 its in the cave next to my base<br><br><a href="http://www.ukarkserver.com/viewtopic.php?f=9&t=57">Forum Thread</a> </p>' +
    "</div>" +
    "</div>";

  var infowindow = new google.maps.InfoWindow({
    content: contentString
  });

  var coordsDiv = document.getElementById("coords");
  map.controls[google.maps.ControlPosition.TOP_CENTER].push(coordsDiv);
  arkMapOverlay.addListener("mousemove", function(event) {
    coordsDiv.textContent =
      "lat: " +
      Math.round(-event.latLng.lat() * 100) / 10 +
      ", lng: " +
      Math.round(event.latLng.lng() * 100) / 10;
  });
  
  arkMapOverlay.addListener("click", function(event) {
    coordsDiv.textContent =
      "lat: " +
      Math.round(-event.latLng.lat() * 100) / 10 +
      ", lng: " +
      Math.round(event.latLng.lng() * 100) / 10;
  });

  var bases = [
    { lat: 20, lng: 24, name: "Penguins Cove" },
    { lat: 50, lng: 37, name: "Qwerty Empire" },
    { lat: 31.8, lng: 24.5, name: "McNae's Keep" },
    { lat: 55, lng: 28, name: "House Martell" },
    { lat: 19, lng: 79, name: "Jolly Ranch" },
    { lat: 45, lng: 32, name: "The Whispering Eye" },
    { lat: 29.6, lng: 24.9, name: "The Council Grounds" },
    { lat: 28, lng: 48, name: "Dauntless" },
    { lat: 50, lng: 60, name: "The Tree Of Horizon" },
    { lat: 62, lng: 16, name: "Trading Post & Community taming pen" },
    { lat: 21, lng: 40, name: "Castle used for events" }
  ];
  bases.forEach(function(feature) {
    var marker = new google.maps.Marker({
      position: new google.maps.LatLng(-feature.lat / 10, feature.lng / 10),
      title: feature.name + " " + feature.lat + ", " + feature.lng,
      map: map,
      icon: feature.icon
    });
    //if (feature.data !== 'foo') {
    marker.addListener("click", function() {
      var infowindow2 = new google.maps.InfoWindow({
        content: marker.title
      });
      infowindow2.open(map, marker);
    });
    //}
  });
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console