-
Notifications
You must be signed in to change notification settings - Fork 2
draw
The entry point to the app, housing all drawing tools.
4.0K │ │ ┌── AreaMap.svelte │ ░░░░▒█ │ 1%
4.0K │ │ ├── mapstore.js │ ░░░░▒█ │ 1%
4.0K │ │ ├── misc_utils.js │ ░░░░▒█ │ 1%
8.0K │ │ ├── centroid_utils.js│ ░░░░▒█ │ 1%
8.0K │ │ ├── drawing_utils.js │ ░░░░▒█ │ 1%
20K │ │ ├── +page.svelte │ ░░░░▒█ │ 3%
48K │ ├─┴ draw
The generic loader function for all main routes
This houses the svelte store variables
Miscellaneous functions:
- get the bounding box
- round
- round all
- geomean
- extent
The main page file
The main function called after all svelte components have been mounted
Contains:
- updates the access date
- initialises a map
- recolour function
- hash function
- loading previous layers
Uploader details
download function for geography
Creates the map object and populates it
sets the layers from props
Drawing functions:
Updates the cursor
Sets up the drawing tools, and map
Simplification tools for a geography
Simplifies the coordinates for transferring to the build page
clears the local data
clears the polygon selector
updates the data of a mapbox layer
changes the map
Click tool
Updates the localStorage
Drawing tools
convert query to a json blob
Documentation provided for the Office of National Statistics Build a Custom Profie application. ONSVisual (2022)