diff --git a/app/helpers/map_helper.rb b/app/helpers/map_helper.rb index 693e673bc..c1c3215eb 100644 --- a/app/helpers/map_helper.rb +++ b/app/helpers/map_helper.rb @@ -104,7 +104,7 @@ def all_services_for_point_query def country_extent_url (iso3) { - url: "https://data-gis.unep-wcmc.org/server/rest/services/GADM_EEZ_Layer/FeatureServer/0/query?where=iso_ter+%3D+%27#{iso3}%27&returnGeometry=false&returnExtentOnly=true&outSR=4326&f=pjson", + url: "https://data-gis.unep-wcmc.org/server/rest/services/GADM_EEZ_Layer/FeatureServer/0/query?where=iso_ter+%3D+#{iso3}&returnGeometry=false&returnExtentOnly=true&outSR=4326&f=pjson", padding: 5 } end diff --git a/app/models/protected_area.rb b/app/models/protected_area.rb index 0fa783feb..3cb2b717b 100644 --- a/app/models/protected_area.rb +++ b/app/models/protected_area.rb @@ -237,12 +237,12 @@ def arcgis_layer end def arcgis_query_string - "/query?where=wdpaid+%3D+%27#{wdpa_id}%27&geometryType=esriGeometryEnvelope&returnGeometry=true&f=geojson" + "/query?where=wdpaid+%3D+#{wdpa_id}&geometryType=esriGeometryEnvelope&returnGeometry=true&f=geojson" end def extent_url { - url: "#{arcgis_layer}/query?where=wdpaid+%3D+%27#{wdpa_id}%27&returnGeometry=false&returnExtentOnly=true&outSR=4326&f=pjson", + url: "#{arcgis_layer}/query?where=wdpaid+%3D+#{wdpa_id}&returnGeometry=false&returnExtentOnly=true&outSR=4326&f=pjson", padding: 0.2 } end