Skip to content

Commit eebe7f0

Browse files
committed
Fixed missing POI issue in gtt_print plugin
Signed-off-by: Ko Nagase <[email protected]>
1 parent 32b4ef0 commit eebe7f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redmine_gtt/patches/geojson_attribute.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def geojson
7272
# doing a single select for each issue
7373
def geodata_for_print
7474
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")).
75+
pluck(Arel.sql("ST_AsGeoJson(ST_Transform(geom, 3857), 9, 0) as geojson, ST_Transform(ST_Centroid(geom), 3857) as center")).
7676
first
7777
json, center = *row
7878
{

0 commit comments

Comments
 (0)