Repository navigation
Documentation & Plugins
Warren Woodhouse edited this page Nov 1, 2026
·
6 revisions
Data found here goes in the <head> section of your map file
This goes in the <head> section
<!-- MOBILE META DATA -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
This goes in the <head> section
<!-- PURL TERMS ISSUED DATA -->
<!-- PurlTermsIssued.js - https://purl.org/dc/terms/issued -->
<meta name="issued" content="num">
This goes in the <head> section
<!-- CLEARTYPE DATA -->
<!-- ClearType.js -->
<meta http-equiv="cleartype" content="on">
This goes in the <head> section
<!-- DISCORD DATA -->
<!-- Custom-DiscordIntegrator-config-id -->
<meta name="discord" content="add discord username here">
This goes in the <head> section
<!-- ICONS META DATA -->
<link rel="icon" href="favicon.ico" type="image/ico"/>
<link rel="shortcut icon" href="favicon.ico" type="image/ico"/>
This goes in the <head> section
<!-- OPENGRAPH META DATA -->
<meta name="og:title" content="Map Name">
<meta name="og:type" content="application">
<meta name="og:url" content="url goes here">
<meta name="og:image" content="favicon.ico">
<meta name="og:site_name" content="Map Name">
<meta name="og:description" content="Description goes here.">
<script type="application/ld+json">{"@context":"https://schema.org/","@type":"Application","name":"Map Name","url":"url goes here"}</script>
This goes in the <head> section
<!-- APPLE META DATA -->
<meta name="apple-mobile-web-app-title" content="Map Name">
<!-- New in iOS6 -->
<link rel="apple-mobile-web-app" href="url goes here">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="mask-icon" href="favicon.ico" color="#000000">
<meta name="theme-color" content="#090909-gradient" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#000000-translucent" media="(prefers-color-scheme: dark)">
<link rel="manifest" href="site.webmanifest" crossorigin="use-credentials" id="manifest-link" />
<link rel="icon" type="image/ico" href="favicon.ico" sizes="96x96" />
<meta name="apple-mobile-web-app-status-bar-style" content="#000000">
<meta name="apple-touch-fullscreen" content="yes">
<link href="favicon.ico" rel="apple-touch-icon" type="image/ico">
<link href="favicon-72x72.ico" rel="apple-ipad-icon" type="image/ico" sizes="72x72">
<link href="favicon-152x152.ico" rel="apple-touch-startup-image" type="image/ico" sizes="152x152">
<link rel="mask-icon" href="favicon.ico" type="image/ico"/>
This goes in the <head> section
<!-- MICROSOFT META DATA -->
<meta name="mssmarttagspreventparsing" content="true">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="msapplication-starturl" content="url goes here">
<meta name="msapplication-window" content="width=800;height=600">
<meta name="msapplication-navbutton-color" content="#000000">
<meta name="application-name" content="Map Name">
<meta name="msapplication-tooltip" content="Description goes here.">
<meta name="msapplication-task" content="name=About;action-uri=url of author profile goes here;icon-uri=favicon.ico">
<meta name="news_keywords" content="add, keywords, here">
This goes in the <head> section
<title>Map Name</title>
<meta name="description" content="Description goes here.">
<meta name="keywords" content="add, keywords, here">
CSS Data from Amazon Silk Developers Page via Amazon Developers
This goes in the <head> section
<!-- Amazon Silk CSS -->
html, body {
overflow: hidden;
position: fixed;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
Scripts are from GIS Stack Exchange and Amazon Silk Developers Page via Amazon Developers
This goes in the <body> section
// Amazon Silk - Listen for DOM Event
L.DomEvent.disableClickPropagation(mapContainer);
// Amazon Silk - Data to be added to Initalize Map - Dragging Essential and Wheel Scroll Essential
var map = L.map('map', {
center: y: 0, x: 0,
zoom: 13,
dragging: true, // Essential: keep standard dragging active
scrollWheelZoom: true,
tap: false // Disabling native tap helper prevents ghost click delays
});
// Amazon Silk - Fire TV D-Pad Panning
let isDragging = false;
let previousPointerPos = { y: 0, x: 0 };
const mapContainer = document.getElementById('map');
// Amazon Silk - Capture the Center Button Hold (Mousedown Emulation)
mapContainer.addEventListener('mousedown', function(e) {
isDragging = true;
previousPointerPos = { y: e.clientY, x: e.clientX };
// Amazon Silk - Safely disable Leaflet’s default auto-inertial transitions during remote interaction
map.dragging.disable();
});
// Amazon Silk - Compute the Drag Delta during D-Pad Directional movement
window.addEventListener('mousemove', function(e) {
if (!isDragging) return;
// Amazon Silk - Calculate the difference between pointer states
const deltaY =
previousPointerPos.y - e.clientY; const deltaX = previousPointerPos.x - e.clientX;
// Amazon Silk - Command Leaflet to pan by pixel differences instantly
map.panBy({deltaY, deltaX]
{ animated: false });
// Amazon Silk - Update Coordinates for the next Incremental Movement
previousPointerPos = { y: e.clientY, x: e.clientX };
});
// Amazon Silk - Release the Drag State (Mouseup Emulation)
window.addEventListener('mouseup', function() {
if (isDragging) {
isDragging = false;
map.dragging.enable(); // Re-enable default handling safely
}
});
This goes in the <body> section
// Tracking Progress for Markers
<input type="checkbox" id="1" onchange="processCheck(this)"> Layer 1<br>
<input type="checkbox" id="2" onchange="processCheck(this)"> Layer 2<br>
<input type="checkbox" id="3" onchange="processCheck(this)"> Layer 3<br>
<input type="checkbox" id="4" onchange="processCheck(this)"> Layer 4
.
.
.
var layerArray = [layers.glucocerebrosidaseLayer, layers.gbaLayer, layers.gl1Layer, layers.SphingomyelinaseacideLayer];
selId = null;
function processCheck(checkbox) {
var checkId = checkbox.id;
if (checkbox.checked) {
if (selId != null) {
map.removeLayer(layerArray[selId - 1]);
document.getElementById(selId).checked = false;
}
layerArray[checkId - 1].addTo(map);
selId = checkId;
}
else {
map.removeLayer(layerArray[checkId - 1]);
selId = null;
}
}
This goes in the <body> section
// Add the Search Control to the map
var searchControl = new L.Control.Search({
layer: filterGroups,
title: 'title',
initial: false,
zoom: 16,
marker: false
});
map.addControl(searchControl);
Blog | YouTube | This wiki is part of Warren Woodhouse Wiki