diff --git a/rmo/status.go b/rmo/status.go index fb7be6f7..faafa533 100644 --- a/rmo/status.go +++ b/rmo/status.go @@ -17,7 +17,7 @@ import ( "github.com/Gleipnir-Technology/nidus-sync/db/sql" "github.com/Gleipnir-Technology/nidus-sync/html" "github.com/go-chi/chi/v5" - //"github.com/rs/zerolog/log" + "github.com/rs/zerolog/log" "github.com/stephenafamo/scan" /* "github.com/Gleipnir-Technology/nidus-sync/db" @@ -160,7 +160,7 @@ func contentFromNuisance(ctx context.Context, report_id string) (result ContentS sm.Columns( psql.F("ST_AsGeoJSON", "location"), ), - sm.From("publicreport.quick"), + sm.From("publicreport.nuisance"), sm.Where(psql.Quote("public_id").EQ(psql.Arg(report_id))), ), scan.SingleColumnMapper[string]) if err != nil { diff --git a/rmo/template/status-by-id.html b/rmo/template/status-by-id.html index b1b54b69..cf0f2758 100644 --- a/rmo/template/status-by-id.html +++ b/rmo/template/status-by-id.html @@ -49,10 +49,7 @@ function onLoad() { center: GEOJSON_LOCATION.coordinates, zoom: 14, }); - map.addMarker(GEOJSON_LOCATION.coordinates, "#00FF00"); - GEOJSON_IMAGE_LOCATIONS.forEach((image) => { - map.addMarker(image.coordinates, "#FF0000"); - }); + map.addMarker(GEOJSON_LOCATION.coordinates, "#DC3545"); }); } document.addEventListener("DOMContentLoaded", onLoad);