Add 2025 Texas Trahan Thanksgiving trip

This commit is contained in:
Chandler Swift 2025-11-29 17:42:21 -06:00
parent 66205965ce
commit 2faf722f03
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,26 @@
import VectorLayer from 'ol/layer/Vector';
import {Vector as VectorSource} from 'ol/source.js';
import GeoJSON from 'ol/format/GeoJSON.js';
import {Style, Stroke} from 'ol/style.js';
import url from './data.geojson?url'; // TODO: remove `?url`?
const colors = '204, 85, 0'; // Käthe says burnt orange
const vectorLayer = new VectorLayer({
source: new VectorSource({
url: url,
format: new GeoJSON,
}),
style: function(feature, resolution){
return new Style({
stroke: new Stroke({
color: `rgba(${colors},${Math.min(1, Math.pow(resolution/10, 1/4))})`,
width: 10/Math.pow(resolution, 1/4),
})
});
},
});
export default vectorLayer;