made with esnextbin
Created
October 26, 2019 14:43
-
-
Save y4rr/46f5f3a29629b45f6fa576ebeecd8483 to your computer and use it in GitHub Desktop.
esnextbin sketch
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>MapKit</title> | |
<script src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js"></script> | |
<style> | |
html, body { | |
height: 100%; | |
width: 100%; | |
overflow: hidden; | |
} | |
body { | |
margin: 0; | |
padding: 0; | |
font-family: "-apple-system-font", "HelveticaNeue-Medium", "Helvetica", "Arial", "sans-serif"; | |
} | |
#map { | |
width: 100%; | |
height: 100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script> | |
const tokenID = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlYzVTkzUlg1NVUifQ.eyJpc3MiOiJEUUNISzI4REw1IiwiaWF0IjoxNTY1MjQ5MDEzLCJleHAiOjE1ODgyOTEyMDB9.XiTUVbKqeDZwqRSAwwM9eZzWCyG1mDxaNRkodNbgfV5AbB5YIJd_DUNFE4PwSNIeYfhYoRrIoasa1sdOXHWlhw"; | |
mapkit.init({ | |
authorizationCallback: function(done) { | |
done(tokenID); | |
} | |
}); | |
var Mitino = new mapkit.CoordinateRegion( | |
new mapkit.Coordinate(55.8370, 37.3890), | |
new mapkit.CoordinateSpan(.016, .016) // latitude delta, longitude delta | |
); | |
var map = new mapkit.Map("map"); | |
map.region = Mitino; | |
</script> | |
</body> | |
</html> |
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
const { enableDynamicTheme, disableDynamicTheme } = require("darkreader-api"); | |
enableDynamicTheme(); |
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": "darkreader-api", | |
"version": "latest" | |
} |
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
"use strict"; | |
var _require = require("darkreader-api"), | |
enableDynamicTheme = _require.enableDynamicTheme, | |
disableDynamicTheme = _require.disableDynamicTheme; | |
enableDynamicTheme(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment