Adrian,
Wow I can't believe you are the first to report this issue. The fix is 2 simple lines of code and I will add them to the next release. If you happen to be using the uncompiled version than you can add the fix your self by opening the TocMapLayerItem.as and find the loadImage function and add the two lines below in red:private function loadImage(imageData:String):Image { const base64Dec:Base64Decoder = new Base64Decoder(); base64Dec.decode(imageData); const byteArr:ByteArray = base64Dec.toByteArray(); const loader:Loader = new Loader(); const lc:LoaderContext = new LoaderContext(false); const image:Image = new Image(); image.maxHeight = 30; image.maxWidth = 30; loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e:Event):void { image.smoothBitmapContent = true; image.source = e.currentTarget.content; }); loader.loadBytes(byteArr, lc); return image; }
Also you may want to st your maps top attribute back to 40 unless you have some reason for the 100 empty pixels above your map.
Don't forget to click the top arrow (promote).
as shown in the below graphic:
* It is your responsibility to disable the layerlist portion of the MapSwitcherWidget or eMapSwitcherWidget by setting the *
* <layerlist visible="false"> *
* Also ensure you do not use the TOCWidget with the LayerListWidget. *
Adrian,
Wow I can't believe you are the first to report this issue. The fix is 2 simple lines of code and I will add them to the next release. If you happen to be using the uncompiled version than you can add the fix your self by opening the TocMapLayerItem.as and find the loadImage function and add the two lines below in red:private function loadImage(imageData:String):Image { const base64Dec:Base64Decoder = new Base64Decoder(); base64Dec.decode(imageData); const byteArr:ByteArray = base64Dec.toByteArray(); const loader:Loader = new Loader(); const lc:LoaderContext = new LoaderContext(false); const image:Image = new Image(); image.maxHeight = 30; image.maxWidth = 30; loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e:Event):void { image.smoothBitmapContent = true; image.source = e.currentTarget.content; }); loader.loadBytes(byteArr, lc); return image; }
Also you may want to st your maps top attribute back to 40 unless you have some reason for the 100 empty pixels above your map.
Don't forget to click the top arrow (promote).
as shown in the below graphic: