File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 59
59
60
60
TILE_URL_TEMPLATE = (
61
61
"https://tiles.planet.com/basemaps/v1/planet-tiles/"
62
- "%s/gmap/{z}/{x}/{y}.png?api_key=%s "
62
+ "%s/gmap/{z}/{x}/{y}.png"
63
63
)
64
64
65
65
@@ -390,14 +390,17 @@ def change_source(self):
390
390
name , mosaicid = self .mosaics [value ]
391
391
tile_url = TILE_URL_TEMPLATE % (
392
392
mosaicid ,
393
- str (api_key ),
394
393
)
394
+
395
+ tile_url = f"{ tile_url } ?{ quote (f'&api_key={ str (api_key )} ' )} "
396
+
395
397
self .layer .setCustomProperty (PLANET_CURRENT_MOSAIC , name )
396
398
else :
397
399
tile_url = f"{ self .layerurl } /" f"{ quote (f'&api_key={ api_key } ' )} "
398
400
399
401
proc = self .renderingOptionsWidget .process ()
400
402
ramp = self .renderingOptionsWidget .ramp ()
403
+
401
404
procparam = quote (f"&proc={ proc } " ) if proc != "default" else ""
402
405
rampparam = quote (f"&color={ ramp } " ) if ramp else ""
403
406
tokens = self .layer .source ().split ("&" )
You can’t perform that action at this time.
0 commit comments