Skip to content

Commit

Permalink
Fix/symbology (#496)
Browse files Browse the repository at this point in the history
* chore: 🚚 Move ArcGIS Pro files to separate folder

* chore: track stylx with git lfs

* chore: 🙈 Add .gitignore to "ArcGIS Pro" folder

* chore: Add ArcGIS Pro files

* feat: export button now exports line layer

* chore: Add ArcGIS Pro style files

* build: ⬆️ update pnpm

* build: ⬆️ upgrade dev dependencies

* refactor: 💄 Simplify route segment symbology
  • Loading branch information
JeffJacobson authored Jan 6, 2025
1 parent 205e3bb commit e762b38
Show file tree
Hide file tree
Showing 17 changed files with 223 additions and 185 deletions.
34 changes: 4 additions & 30 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Common settings that generally should always be used with your language specific settings

# Auto detect text files and perform LF normalization
* text=auto

#
# The above will handle all files NOT found below
#

# Documents
*.bibtex text diff=bibtex
*.doc diff=astextplain
Expand All @@ -31,7 +28,6 @@
*.txt text
*.sql text
*.epub diff=astextplain

# Graphics
*.png binary
*.jpg binary
Expand All @@ -46,7 +42,6 @@
# use the following line instead.
# *.svg binary
*.eps binary

# Scripts
*.bash text eol=lf
*.fish text eol=lf
Expand All @@ -57,14 +52,12 @@
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# Serialisation
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text

# Archives
*.7z binary
*.bz binary
Expand All @@ -85,23 +78,17 @@
*.Z binary
*.zip binary
*.zst binary

# Text files where line endings should be preserved
*.patch -text

#
# Exclude files from exporting
#

.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore

# Apply override to all files in the directory
*.md linguist-detectable

# Basic .gitattributes for a PowerShell repo.

# Source files
# ============
*.ps1 text eol=crlf
Expand All @@ -112,7 +99,6 @@
*.pssc text eol=crlf
*.psrc text eol=crlf
*.cdxml text eol=crlf

## GITATTRIBUTES FOR WEB PROJECTS
#
# These settings are for any web project.
Expand All @@ -123,13 +109,11 @@
#
# Note that binary is a macro for -text -diff.
######################################################################

# Auto detect
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=auto

# Source code
*.bash text eol=lf
*.bat text eol=crlf
Expand Down Expand Up @@ -167,10 +151,8 @@
*.tsx text
*.xml text
*.xhtml text diff=html

# Docker
Dockerfile text

# Documentation
*.ipynb text eol=lf
*.markdown text diff=markdown
Expand All @@ -196,7 +178,6 @@ NEWS text
readme text
*README* text
TODO text

# Templates
*.dot text
*.ejs text
Expand All @@ -215,7 +196,6 @@ TODO text
*.tpl text
*.twig text
*.vue text

# Configs
*.cnf text
*.conf text
Expand All @@ -239,10 +219,8 @@ Makefile text
makefile text
# Fixes syntax highlighting on GitHub to allow comments
tsconfig.json linguist-language=JSON-with-Comments

# Heroku
Procfile text

# Graphics
*.ai binary
*.bmp binary
Expand Down Expand Up @@ -270,7 +248,6 @@ Procfile text
*.tiff binary
*.wbmp binary
*.webp binary

# Audio
*.kar binary
*.m4a binary
Expand All @@ -279,7 +256,6 @@ Procfile text
*.mp3 binary
*.ogg binary
*.ra binary

# Video
*.3gpp binary
*.3gp binary
Expand All @@ -299,34 +275,32 @@ Procfile text
*.swc binary
*.swf binary
*.webm binary

# Archives
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary

# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary

# Executables
*.exe binary
*.pyc binary
# Prevents massive diffs caused by vendored, minified files
**/.yarn/releases/** binary
**/.yarn/plugins/** binary

# RC files (like .babelrc or .eslintrc)
*.*rc text

# Ignore files (like .npmignore or .gitignore)
*.*ignore text

# Prevents massive diffs from built files
dist/* binary



*.stylx filter=lfs diff=lfs merge=lfs -text
3 changes: 3 additions & 0 deletions ArcGIS Pro/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GpMessages
Index
.backups
Binary file added ArcGIS Pro/Line Segment Label.lxp
Binary file not shown.
3 changes: 3 additions & 0 deletions ArcGIS Pro/LocateMP.stylx
Git LFS file not shown
Binary file added ArcGIS Pro/Milepost Symbols/Milepost Symbols.aprx
Binary file not shown.
1 change: 1 addition & 0 deletions ArcGIS Pro/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This folder is for ArcGIS Pro files used to create symbology for this app.
26 changes: 26 additions & 0 deletions ArcGIS Pro/Route Segments.geojson
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"features": [
{
"id": 1,
"geometry": {
"coordinates": [
[-117.41114857985451, 47.66097488626905],
[-117.41126943265623, 47.66086873628804],
[-117.41128445651663, 47.66084316207008]
],
"type": "LineString"
},
"properties": {
"OBJECTID": 1,
"Route": "002COBROWNE",
"Direction": "I",
"Srmp": 287.45,
"Back": "",
"EndSrmp": 287.46,
"EndBack": ""
},
"type": "Feature"
}
],
"type": "FeatureCollection"
}
Binary file added ArcGIS Pro/SRMP Label.lxp
Binary file not shown.
Binary file added ArcGIS Pro/SampleRouteSegments.lpkx
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@biomejs/biome": "1.9.4",
"@types/arcgis-rest-api": "^10.4.8",
"@types/browser-update": "^3.3.3",
"@types/node": "^22.10.2",
"@types/node": "^22.10.5",
"@vitest/coverage-istanbul": "^2.1.8",
"@vitest/coverage-v8": "^2.1.8",
"browserslist-to-esbuild": "^2.1.1",
Expand All @@ -50,7 +50,7 @@
"svgson": "^5.3.1",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"vite": "^6.0.6",
"vite": "^6.0.7",
"vitest": "^2.1.8"
},
"repository": {
Expand All @@ -68,5 +68,5 @@
],
"author": "Jeff Jacobson",
"license": "Unlicense",
"packageManager": "pnpm@9.15.2+sha512.93e57b0126f0df74ce6bff29680394c0ba54ec47246b9cf321f0121d8d9bb03f750a705f24edc3c1180853afd7c2c3b94196d0a3d53d3e069d9e2793ef11f321"
"packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a"
}
Loading

0 comments on commit e762b38

Please sign in to comment.