Skip to content

Instantly share code, notes, and snippets.

View RalucaNicola's full-sized avatar
🌍

Raluca Nicola RalucaNicola

🌍
View GitHub Profile

Level of detail

  • symbols (whether 3D models or 2D symbols)
  • 3D object scene layers

For maps we would rather use:

Some concepts behind creating multiscale maps would be:

@RalucaNicola
RalucaNicola / github-commands.md
Last active November 21, 2022 20:24
Common Github commands for work

All these commands can be followed along using this repository:

When I need to checkout a branch

I might not know the exact name of the branch, but I do know it contains some word

  • git branch --r | grep -i <pattern>

Maybe I don't have all the branches in sync with the remote repo, so I need to fetch them:

  • git fetch origin
@RalucaNicola
RalucaNicola / map-analysis.md
Last active January 3, 2019 21:33
map analysis

Message of the map: figure out what are the high density population areas in the US.

Why would I use 3D? it looks more appealing, the user is excited to explore the map in 3D

Additional problems in 3D:

  • harder to navigate
    • solution: navigation widgets; much more intuitive using touch navigation!
  • hard to compare heights
  • solution: mapping the same variable on both color and height;
@RalucaNicola
RalucaNicola / halo-sv.md
Last active June 27, 2019 09:34
Change halo in SceneViewer
  1. Get the index of the layer you want to modify. To do that, run this snippet in the console:
view.map.allLayers.forEach(function(layer, index) {
  console.log(layer.title, "->", index);
});
  1. Set the halo color, transparency and size by running the changeHalo function in the console.
@RalucaNicola
RalucaNicola / data-ideas.md
Last active June 30, 2019 11:04
Data collection

How do I search for data?

const webscene = new WebScene({
ground: {
opacity: 0 // set transparent ground
}
});
const view = new SceneView({
container: "viewDiv",
map: webscene,
qualityProfile: "high",
const contourLayer = new FeatureLayer({
url: "https://services2.arcgis.com/cFEFS0EWrhfDeVw9/arcgis/rest/services/ContourLinesZurichDemo/FeatureServer",
elevationInfo: {
mode: "absolute-height",
featureExpressionInfo: {
expression: "Pow($feature.elevation,1.2)"
}
},
renderer: {
type: "simple",
const renderer = {
type: "simple",
symbol: {
type: "polygon-3d",
symbolLayers: [{
type: "extrude",
material: {
color: [86, 72, 31]
},
size: 100
const hillsLayer = new FeatureLayer({
url: "https://services2.arcgis.com/cFEFS0EWrhfDeVw9/arcgis/rest/services/HillsZurichDemo/FeatureServer",
elevationInfo: {
mode: "absolute-height",
featureExpressionInfo: {
expression: "Pow(Geometry($feature).Z, 1.2)"
}
},
renderer: {
type: "simple",