Skip to content

Instantly share code, notes, and snippets.

View stonetip's full-sized avatar

Jon Nehring stonetip

View GitHub Profile
@stonetip
stonetip / tileCalc.htm
Last active January 21, 2021 03:57
Function demo to convert between lat/lon and zxy tile coordinates at a given zoom level
<html>
<head>
<title>tile calc</title>
</head>
<body>
<script>
const degToRad = Math.PI/180;
function getTileZXY(zxyStr) { // e.g. 12/773/1447