def html_url(self): url = WebLayer3857.html_url(self) apiKey = QSettings().value("Plugin-OpenLayers/googleMapsApiKey") if apiKey != None and bool(apiKey.strip()): url += "?key=%s" % apiKey return url
def html_url(self): url = WebLayer3857.html_url(self) url += "?layer=%s" % self._layer if self.apiKey(): url += "&key=%s" % self.apiKey().strip() return url