Examples of well designed things customers have built that take advantage of the latest and greatest Mapbox has to offer.
This file contains hidden or 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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css"> | |
<script src='http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js'></script> | |
<style> | |
body { margin:0; padding:0; } | |
#map { position:absolute; top:0; bottom:0; width:100%; } | |
</style> | |
</head> |
This file contains hidden or 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' /> | |
<title></title> | |
<meta name='viewport' content='width=device-width, initial-scale=1'> | |
<style> | |
body { | |
font: 16px sans-serif; | |
margin: 0; |
This file contains hidden or 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' /> | |
<title></title> | |
<meta name='viewport' content='width=device-width, initial-scale=1'> | |
<style> | |
body { | |
font: 16px sans-serif; | |
margin: 0; |
Did you know that mapbox-gl-native supports high resolution exports? It's true. Follow these steps to enable.
- Open the console.
- Check out mapbox gl native with
git clone [email protected]:mapbox/mapbox-gl-native.git
- Run
make render
which kicks off the build process for a CLI tool for making images. Aftermake render
succeeds, the CLI tool will be located at./build/macos/Debug/mbgl-render
. - Type
./build/macos/Debug/mbgl-render
in the console. If you press return without any arguments, you'll see help output:
Allowed options:
-s [ --style ] json Map stylesheet
Did you know that mapbox-gl-native supports high resolution exports? It's true. Follow these steps to enable.
- Open the console.
- Check out mapbox gl native with
git clone [email protected]:mapbox/mapbox-gl-native.git
- Run
make render
which kicks off the build process for a CLI tool for making images. Aftermake render
succeeds, the CLI tool will be located at./build/macos/Debug/mbgl-render
. - Type
./build/macos/Debug/mbgl-render
in the console. If you press return without any arguments, you'll see help output:
Allowed options:
-s [ --style ] json Map stylesheet
This file contains hidden or 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
javascript:(function p(){ | |
const s = Math.min(window.innerWidth, window.innerHeight) / 2; | |
const img = [ | |
"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAC8VBMVEXk4QBq2QBWpQDkWgCONQA7NQDGXAC7pgBK2gC65ADH3QA64wCS0gDciQBbSwCBNADjQQBkcQBbugCO4wBV5ADY5ACkvQAubgC+RgDJPwAzTACWiQDaywBd5ACF4wDcXwCvpABO4wC80gDOsQBasACf0gB3ogCPYgDjSQCBeQBnwwDk5QCmyQBprQDYtwCx4wBM0AC8jQDTVQBiVgCvkwDZ1ACIuQDjqAB4yABl4wDjxACneQBqSACaYQDkUgBubQB6rgDkzwCWyQDQcQC8VADKaADJUwBZVwCwhQDcwABtzgDkmQBzYQB0UwDjYgCkmwBYxQDI0wDGvABXhQClUgDcVQDXwgCzeQBGRwCxMQDMLgCOewBs4wDk2wBYZwDYPQCaMgBdPAA/0ADR4gBW0wBNNADjOADe3ACg4wA8hwDL5AA8ugB9hADjfwDjyQCKiQBNbADYoQCX2wAw2gC+fwAxkgCt0QAxsADidwBwlwBBeQC8mwDCcQCzUwDRjAAtzgBiiwBUQgAvoQC93AA92gCwvQDKegBvewDkvwBF4wDY2gCXowAxYgBizQCnXwDioACI2gBxjABpVACYVADZSQBJrwBPVACKVACjsgCBlABilwBpuAC7vgCyyQDZewCkaQDjsQCG0ACHpgB60QCTsgBmowBMugDC4wCo4wCaQwCX5ADe5ACn2wBUmwDTlwBX3ABnPADkaQCuagBClwDEyQCafgBWcwCHxwBMyACYcADHhwDjhwDOyQCwsQA9bQCNRwBEpQBg2gB5vACyRAB7bQDZMADk1QB52gB84wClLgBZLgDkkAB1MQDIlQDclQCMbwDTYQBkZABSXwDErgC02QCQmADP2QC8yQ |
This file contains hidden or 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
{ | |
"name": "wilderplace", | |
"productName": "wilderplace", | |
"version": "1.1.0", | |
"description": "A divine garden adventure", | |
"main": "src/index.js", | |
"scripts": { | |
"start": "electron-forge start", |
This file contains hidden or 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
// ThemeContext.tsx | |
/** | |
* Calculates layout metrics based on screen dimensions and aspect ratio. | |
* Establishes a grid system with columns and gutters for responsive design. | |
*/ | |
const wideBreakpoint = 1200; | |
const narrowBreakpoint = 800; | |
const tallBreakpoint = 1000; | |
export function getMetrics( |
OlderNewer