This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type Properties = Record<string, Value> | |
export type ConditionFunction = (input: string | number, properties: Properties) => boolean | |
export type FilterFunction = (properties: Properties) => boolean | |
export interface Conditional { | |
keyCondition?: { | |
key: string | |
keyFunction: ConditionFunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Step Zoom bug</title> | |
<script src='./dist/maplibre-gl-dev.js'></script> | |
<link href='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css' rel='stylesheet' /> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const svg = ` | |
<svg xmlns="http://www.w3.org/2000/svg" width="104" height="20"> | |
<script/> | |
<linearGradient id="a" x2="0" y2="100%"> | |
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/> | |
<stop offset="1" stop-opacity=".1"/> | |
</linearGradient> | |
<rect rx="3" width="60" height="20" fill="#555"/> | |
<rect rx="3" x="50" width="54" height="20" fill="@color@"/> | |
<path fill="@color@" d="M64 0h4v20h-4z"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs' | |
import zlib, { brotliCompressSync, brotliDecompressSync } from 'zlib' | |
import * as S2CellID from 's2projection/s2CellID' | |
import type { Face } from 's2projection' | |
/** Types **/ | |
type DrawType = 1 | 2 | 3 | 4 // 1: points, 2: lines, 3: poly | |
type Node = [number, number] |
OlderNewer