Skip to content

Commit

Permalink
Update metatdata_display.py module
Browse files Browse the repository at this point in the history
#210
adapt it to the adjustment of the requester.py's signals
  • Loading branch information
SimonSAMPERE committed Aug 29, 2019
1 parent 23a38ea commit 9253fd3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/metadata_display.py
Expand Up @@ -19,7 +19,6 @@
from .isogeo_pysdk import IsogeoTranslator

# Plugin modules
from .api import Authenticator
from .tools import IsogeoPlgTools

# UI module
Expand All @@ -32,7 +31,6 @@
qsettings = QSettings()
logger = logging.getLogger("IsogeoQgisPlugin")

plg_api_mngr = Authenticator(auth_folder=None)
plg_tools = IsogeoPlgTools()

osm_lbls = "contextualWMSLegend=0&crs=EPSG:4326&dpiMode=7&featureCount=10&format=image/png&layers=Reference_Labels&styles=default&tileMatrixSet=250m&url=https://gibs.earthdata.nasa.gov/wmts/epsg4326/best/1.0.0/WMTSCapabilities.xml"
Expand Down Expand Up @@ -65,13 +63,12 @@ def __init__(self):

self.complete_md.btn_md_edit.pressed.connect(lambda: plg_tools.open_webpage(link=self.url_edition))

def show_complete_md(self, md:dict):
def show_complete_md(self, md: dict, tags: dict):
"""Open the pop up window that shows the metadata sheet details.
:param md dict: Isogeo metadata dict
"""
logger.info("Displaying the whole metadata sheet.")
tags = plg_api_mngr.get_tags(md.get("tags"))
isogeo_tr = IsogeoTranslator(qsettings.value('locale/userLocale')[0:2])

# clean map canvas
Expand Down

0 comments on commit 9253fd3

Please sign in to comment.