Set your source to a point layer with millions of points Set the center of the map to where data exists Load the map.
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
let CustomTileLayer = BaseTileLayer.createSubclass({ | |
properties: { | |
urlTemplate: null, | |
}, | |
getTileUrl: function (level, row, col) { | |
return this.urlTemplate | |
.replace("{z}", level) | |
.replace("{x}", col) | |
.replace("{y}", row); | |
}, |
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
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
if git rev-parse --verify HEAD >/dev/null 2>&1 |
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
// Helper function to curry 2 arg functions | |
const curry = f => b => a => f(a,b); | |
// oh look, a 2 arg function! | |
function formatDateForLabeling(dateString, format='yyyymmdd') { | |
let d = new Date(0); | |
d.setUTCSeconds(dateString); | |
if(format === 'mmddyyyy') { | |
return new Intl.DateTimeFormat('en-US', {timeZone: 'UTC'}).format(d); | |
} |
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
/// <amd-dependency path="esri/core/tsSupport/declareExtendsHelper" name="__extends" /> | |
/// <amd-dependency path="esri/core/tsSupport/decorateHelper" name="__decorate" /> | |
import { subclass, declared, property } from "esri/core/accessorSupport/decorators"; | |
import Widget from "esri/widgets/Widget"; | |
import { renderable, tsx } from "esri/widgets/support/widget"; | |
tsx; // Reference tsx here, this will be used after compilation to JavaScript | |
const CSS = { | |
base: "esri-hello-world", |
the docker cli client lets you manage your images & containers via a wrapper on api:
Get docker comfiguration:
docker system info
Create a docker image tagged w. a name w. docker build:
Sometimes it's nice to be able to step through code directly in VSCode, setting breakpoints and watching variables. Here's tentatively how you can do it with our React app:
-
Install VSCode Extension Debugger for Chrome.
-
Add Configuration to your Launch.json as per below to launch Chrome [Source]
-
Add argument for "runtimeArgs" as per github suggestion here to get your Redux extension running in the VSCode Chrome browser.
- : The most basic UI element. Centers content horizontally.
- : An element that isolates/wraps css styles.
- : allows page layout grid control on 12-column grid layout. e.g.:
<Grid item xs={12} sm={6}><Paper className={classes.paper}>Test</Paper>
item: pass the item property to components inside a container component so that they become items.
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
[Functional Components](https://reactjs.org/tutorial/tutorial.html#function-components) |
NewerOlder