|
@@ -1026,6 +1026,7 @@ class Map(object):
|
|
@return new layer on success
|
|
@return new layer on success
|
|
@return None on failure
|
|
@return None on failure
|
|
"""
|
|
"""
|
|
|
|
+ wx.BeginBusyCursor()
|
|
# l_opacity must be <0;1>
|
|
# l_opacity must be <0;1>
|
|
if l_opacity < 0: l_opacity = 0
|
|
if l_opacity < 0: l_opacity = 0
|
|
elif l_opacity > 1: l_opacity = 1
|
|
elif l_opacity > 1: l_opacity = 1
|
|
@@ -1043,6 +1044,8 @@ class Map(object):
|
|
if not layer.Render():
|
|
if not layer.Render():
|
|
raise gcmd.GException(_("Unable to render map layer <%s>.") % name)
|
|
raise gcmd.GException(_("Unable to render map layer <%s>.") % name)
|
|
|
|
|
|
|
|
+ wx.EndBusyCursor()
|
|
|
|
+
|
|
return layer
|
|
return layer
|
|
|
|
|
|
def DeleteLayer(self, layer, overlay = False):
|
|
def DeleteLayer(self, layer, overlay = False):
|