Skip to content

Commit

Permalink
add smart mapping update app
Browse files Browse the repository at this point in the history
  • Loading branch information
ekenes committed Feb 8, 2024
1 parent 5f7baeb commit 327415b
Show file tree
Hide file tree
Showing 3 changed files with 2,150 additions and 5 deletions.
8 changes: 4 additions & 4 deletions wurman/population-wurman-density.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

const year = 2020;
const initialViewScale = 144447.638572;
const binSize = 750;
const binSize = 750 * 0.2;

const layer = new FeatureLayer({
title: "Population (2020)",
Expand Down Expand Up @@ -112,7 +112,7 @@

const featureReduction = {
type: "binning",
fixedBinLevel: 6,
fixedBinLevel: 7,

fields: [
new AggregateField({
Expand All @@ -128,7 +128,7 @@
})
],

labelsVisible: true,
labelsVisible: false,
labelingInfo: [
new LabelClass({
minScale: 36112,
Expand Down Expand Up @@ -352,7 +352,7 @@
var binWidthMeters = ${binSize};
var viewResolution = ${view.resolution};
var binWidthPixels = binWidthMeters / viewResolution;
var value = $feature.Population / 3000;
var value = $feature.Population / 300;
var innerRatio = IIF(value > 1, 1, value);
var outerSize = binWidthPixels * (${initialViewScale} / $view.scale);
Expand Down
Loading

0 comments on commit 327415b

Please sign in to comment.