Skip to content

Commit

Permalink
Revert "tested if making highway=steps have {"lineMetrics":true}
Browse files Browse the repository at this point in the history
…makes them gradeint-styleable"

This reverts commit d5873be.
  • Loading branch information
CommanderStorm committed Oct 2, 2024
1 parent d5873be commit 10932d9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions server/src/maps/refresh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@ async fn repopulate_indoor_features(pool: &PgPool) -> sqlx::Result<()> {
geom,
tags
FROM geometry_in_lat_lon),
clustered_features(group_id, features, geom) AS (SELECT group_id,
clustered_features(group_id, features) AS (SELECT group_id,
jsonb_build_object(
'type', 'Feature',
'id', gid,
'geometry', ST_AsGeoJSON(geom)::jsonb,
'properties', tags
) || CASE WHEN tags->>'highway'='steps'
THEN '{"lineMetrics":true}'::jsonb
ELSE '{}'::jsonb END,
),
geom
FROM clustered_geometry),
grouped_features(group_id, features, convex_hull) AS (SELECT group_id,
Expand Down

0 comments on commit 10932d9

Please sign in to comment.