We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32b4ef0 + eebe7f0 commit cdae35aCopy full SHA for cdae35a
lib/redmine_gtt/patches/geojson_attribute.rb
@@ -72,7 +72,7 @@ def geojson
72
# doing a single select for each issue
73
def geodata_for_print
74
if row = self.class.where(id: id).where.not(geom: nil).
75
- pluck(Arel.sql("ST_AsGeoJson(ST_Transform(geom, 3857)) as geojson, ST_Transform(ST_Centroid(geom), 3857) as center")).
+ pluck(Arel.sql("ST_AsGeoJson(ST_Transform(geom, 3857), 9, 0) as geojson, ST_Transform(ST_Centroid(geom), 3857) as center")).
76
first
77
json, center = *row
78
{
0 commit comments