Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Unboxing the Shetlands
<!DOCTYPE html>
<title>Maps with New Zealand</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
body {
padding: 0;
margin: 0;
html, body, #map {
height: 100%;
width: 100%;
#map2 {
position: fixed;
width: 400px;
height: 220px;
right: 10px;
bottom: 20px;
z-index: 2;
border: 4px solid;
<div id="map" style="z-index:0";></div>
<div id="map2" ></div>
<link rel="stylesheet" href="" />
<script src=""></script>
var map ='map').setView([60.3133164,-1.1096393], 8);
L.tileLayer('http://{s}{z}/{x}/{y}.png', {
attribution: '<a href="">OpenStreetMap</a> contributors, &copy; <a href="">CartoDB</a>.'
], {
color: '#D4DADC',
fillColor: '#D4DADC',
fillOpacity: 1
var map2 ='map2').setView([56.7800308,-4.0853518], 5);
L.tileLayer('http://{s}{z}/{x}/{y}.png', {
attribution: 'Esri'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment