Skip to content

Commit

Permalink
Do not allow to click outside
Browse files Browse the repository at this point in the history
  • Loading branch information
rmichaelis committed Jul 12, 2024
1 parent 5bc74f5 commit 9d6d6c5
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions geoportal/geoportailv3_geoportal/views/getfeatureinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,22 +358,28 @@ def get_info(self, fid, coordinates_big_box, coordinates_small_box,
float(coords[2]), float(coords[3]))

geometry = geojson_loads(geojson.dumps(mapping(the_box.centroid)))

features = self._get_external_data(
luxgetfeaturedefinition.layer,
luxgetfeaturedefinition.rest_url,
None,
None, None, None, None,
None,
use_auth=luxgetfeaturedefinition.use_auth,
p_geometry=the_box.centroid.wkt, srs_geometry="2169")
f = []
if len(features) > 0:
f = [self.to_feature(luxgetfeaturedefinition.layer, None,
geometry,
[],
[],
None)]
if luxgetfeaturedefinition.rest_url is not None and len(luxgetfeaturedefinition.rest_url) > 0:
features = self._get_external_data(
luxgetfeaturedefinition.layer,
luxgetfeaturedefinition.rest_url,
None,
None, None, None, None,
None,
use_auth=luxgetfeaturedefinition.use_auth,
p_geometry=the_box.centroid.wkt, srs_geometry="2169")
if len(features) > 0:
f.append(self.to_feature(luxgetfeaturedefinition.layer, None,
geometry,
[],
[],
None))
else:
f.append(self.to_feature(luxgetfeaturedefinition.layer, None,
geometry,
[],
[],
None))
results.append(
self.to_featureinfo(
f,
Expand Down

0 comments on commit 9d6d6c5

Please sign in to comment.