I recently discovered grid maps. Very cool! When I create a grid map via the editor, my maps looks good, tiles butting up against each other, no problem:
However, when I simply click "view the SQL"->"Convert to SQL" and then run the query, the tiles on my map get squished:
TonyC
April 13, 2023, 8:27am
#2
usually when you convert to SQL it adds a LIMIT as well ... Are you running the LIMIT or you have removed it?
There is no limit:
SELECT
((floor(((latitude - -37.8) / 0.1)) * 0.1) + -37.8) AS "latitude",
((floor(((longitude - -118.5) / 0.1)) * 0.1) + -118.5) AS "longitude",
count(*) AS "count"
FROM locations
GROUP BY
((floor(((latitude - -37.8) / 0.1)) * 0.1) + -37.8),
((floor(((longitude - -118.5) / 0.1)) * 0.1) + -118.5)
TonyC
April 14, 2023, 9:36am
#4
Can you send Admin -> Troubleshooting -> Diagnostic Info
{
"browser-info": {
"language": "en-US",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/111.0",
"vendor": ""
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.15+10",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/ ",
"java.version": "11.0.15",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.15+10",
"os.name": "Linux",
"os.version": "4.14.281-212.502.amzn2.x86_64",
"user.language": "en",
"user.timezone": "GMT"
},
"metabase-info": {
"databases": [
"postgres",
"googleanalytics",
"h2",
"athena"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "12.11"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.3.2"
}
},
"run-mode": "prod",
"version": {
"date": "2022-06-27",
"tag": "v0.43.4",
"branch": "release-x.43.x",
"hash": "61cc28e"
},
"settings": {
"report-timezone": null
}
}
}
TonyC
April 14, 2023, 9:49am
#6
Try to upgrade to 0.46.1 since there might have been map issues which now are fixed
upgrading worked! Thank you.