Skip to content

Instantly share code, notes, and snippets.

View wipfli's full-sized avatar

Oliver Wipfli wipfli

View GitHub Profile
@wipfli
wipfli / marker-hover.html
Created March 16, 2022 10:05
Change size of marker on hover with CSS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Attach a popup to a marker instance</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js"></script>
<link href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
@wipfli
wipfli / power-omt-planetiler.md
Created March 11, 2022 13:27
power-omt-planetiler.md

Adding a power layer to OpenMapTiles with planetiler

OpenMapTiles v3.14 does not include the power tag. This gist shows how to add it in a new layer with planetiler.

Step 1: OpenMapTiles

digitalocean droplet:

ubuntu-m-16vcpu-128gb-fra1-01
128 GB / 16 CPUs
400 GB SSD Disk
8 TB transfer

command:

@wipfli
wipfli / be-shift.ipynb
Created November 18, 2021 12:23
Differential AC-Stark shift calculation on the S to P Transition of Beryllium at 1050 nm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.