Skip to content

Commit

Permalink
better number formatting of numobjects
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Sep 25, 2024
1 parent 8b9e85f commit 192001d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qlever-petrimaps/server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ util::http::Answer Server::handlePosReq(const Params& pars) const {
// res of -1 means dont render clusters
if (style == HEATMAP || reso >= THRESHOLD) reso = -1;

LOG(INFO) << "[SERVER] Click at " << x << ", " << y;
LOG(DEBUG) << "[SERVER] Click at " << x << ", " << y;

std::shared_ptr<Requestor> reqor;
{
Expand Down
2 changes: 1 addition & 1 deletion web/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function loadMap(id, bounds, numObjects, autoThreshold) {
map.fitBounds(boundsLatLng);
sessionId = id;

document.getElementById("stats").innerHTML = "<span>Showing " + numObjects + (numObjects > 1 ? " objects" : " object") + "</span>";
document.getElementById("stats").innerHTML = "<span>Showing " + numObjects.toLocaleString('en') + (numObjects > 1 ? " objects" : " object") + "</span>";

const heatmapLayer = L.nonTiledLayer.wms('heatmap', {
minZoom: 0,
Expand Down

0 comments on commit 192001d

Please sign in to comment.