geosketch_design_notes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| geosketch_design_notes [2023/01/11 08:11] – external edit 127.0.0.1 | geosketch_design_notes [2023/01/12 03:13] (current) – removed jhagstrand | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== GeoSketch Design Notes ====== | ||
| - | |||
| - | ===== Scale ===== | ||
| - | |||
| - | scale = number of pixels to display the radius of the globe | ||
| - | |||
| - | scale factor. | ||
| - | |||
| - | scale step pct. applied to current scale with each step | ||
| - | |||
| - | Calculation | ||
| - | |||
| - | with full screen browser window on laptop 1920 x 984 | ||
| - | Make a square of 984x984. | ||
| - | |||
| - | (smallest dimension / 2) * factor = scale | ||
| - | |||
| - | ==== Scale, Step, Factor, Rank ==== | ||
| - | ^step^factor^rank ^scale1^ | ||
| - | | | ||
| - | | | ||
| - | | | ||
| - | | | ||
| - | | | ||
| - | | | ||
| - | | | ||
| - | | | ||
| - | | | ||
| - | | 10| | | ||
| - | | 11| | ||
| - | | 12| | | ||
| - | | 13| | | ||
| - | | 14| | ||
| - | | 15| | | ||
| - | | 16| | | ||
| - | | 17| | ||
| - | | 18| | | ||
| - | | 19| | | ||
| - | | 20| | ||
| - | |||
| - | scale 1: full screen laptop\\ | ||
| - | scale 2: 1/4 screen laptop, 7cm square\\ | ||
| - | scale 3: phone portrait\\ | ||
| - | |||
| - | ==== Sliding Scale to Palette Index ==== | ||
| - | |||
| - | ^zoom ^ geomScaleRank | ||
| - | ^ ::: ^ 1 ^ 2 ^ 3 ^ 4 ^ 5 ^ 6 ^ | ||
| - | ^ 1 | 6 | 5 | 4 | 3 | 2 | 1 | | ||
| - | ^ 2 | | ||
| - | ^ 3 | | ||
| - | ^ 4 | | ||
| - | ^ 5 | | ||
| - | ^ 6 | | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ==== Rivers ==== | ||
| - | scalerank 1 | ||
| - | * Nile | ||
| - | * Mississippi | ||
| - | * Amazon | ||
| - | * Yangtze | ||
| - | * Lena | ||
| - | scalerank 2 | ||
| - | * Congo | ||
| - | scalerank 3 | ||
| - | * Indus | ||
| - | * Ganges | ||
| - | scalerank 4 | ||
| - | |||
| - | scalerank 5 | ||
| - | |||
| - | scalerank 6 | ||
| - | |||
| - | |||
| - | Tigris, Euprates | ||
| - | |||
| - | ===== Patterns ===== | ||
| - | |||
| - | google " | ||
| - | |||
| - | Examples of " | ||
| - | * https:// | ||
| - | * https:// | ||
| - | * https:// | ||
| - | |||
| - | ===== show/hide ===== | ||
| - | |||
| - | minimal implements functions show(id) and hide(id) which expect attribute " | ||
| - | minimal also implements attribute " | ||
| - | |||
| - | jslib/utils implements function show(elem, | ||
| - | |||
| - | HUD implements function fade(elem, | ||
| - | |||
| - | display: | ||
| - | |||
| - | opacity:1 vs 0, leaves the element in place. | ||
| - | |||
| - | ===== Sketch ===== | ||
| - | |||
| - | For inspiration, | ||
| - | |||
| - | design options | ||
| - | - user choose up front from toolbar of points/ | ||
| - | * explict up-front choice might be easier to understand | ||
| - | * make this choice part of creating the layer | ||
| - | - choose point/ | ||
| - | * draw as line | ||
| - | * user chooses point by finishing the object after one point | ||
| - | * user chooses polygon by dropping last point on first | ||
| - | |||
| - | we have chosen option 1 for now | ||
| - | |||
| - | ===== Polygons ===== | ||
| - | |||
| - | In GeoJson, a polygon is a closed line. The last point duplicates the first. | ||
| - | |||
| - | In canvas 2d ctx, there are two ways to close a line: | ||
| - | * ctx.lineTo() back to the first point. | ||
| - | * ctx.closePath() | ||
| - | |||
| - | In voyc, all of our polygon data is closed.\\ | ||
| - | Therefore, we do not use closePath(). | ||
| - | |||
| - | |||
geosketch_design_notes.1673442670.txt.gz · Last modified: 2023/01/11 08:11 by 127.0.0.1