src/level/tiled/TMXTiledMap.js
function readImageLayer(map, data, z) {
        // Normalize properties
        me.TMXUtils.applyTMXProperties(data.properties, data);

        // create the layer
        var imageLayer = me.pool.pull("me.ImageLayer",
            // x/y is deprecated since 0.15 and replace by offsetx/y
            +data.offsetx || +data.x || 0,
            +data.offsety || +data.y || 0,
            Object.assign({
                name: data.name,
                image: data.image,
                z: z
            }, data.properties)
        );

        // set some additional flags
        var visible = typeof(data.visible) !== "undefined" ? data.visible : true;
        imageLayer.setOpacity(visible ? +data.opacity : 0);

        return imageLayer;
    }
function readImageLayer(map, data, z) {
        // Normalize properties
        me.TMXUtils.applyTMXProperties(data.properties, data);

        // create the layer
        var imageLayer = me.pool.pull("me.ImageLayer",
            // x/y is deprecated since 0.15 and replace by offsetx/y
            +data.offsetx || +data.x || 0,
            +data.offsety || +data.y || 0,
            Object.assign({
                name: data.name,
                image: data.image,
                z: z
            }, data.properties)
        );

        // set some additional flags
        var visible = typeof(data.visible) !== "undefined" ? data.visible : true;
        imageLayer.setOpacity(visible ? +data.opacity : 0);

        return imageLayer;
    }
function readImageLayer ( map , data , z ) { // Normalize properties me . TMXUtils . applyTMXProperties ( data . properties , data ) ; // create the layer var imageLayer = me . pool . pull ( "me.ImageLayer" , // x/y is deprecated since 0.15 and replace by offsetx/y + data . offsetx || + data . x || 0 , + data . offsety || + data . y || 0 , Object . assign ( { name : data . name , image : data . image , z : z } , data . properties ) ) ; // set some additional flags var visible = typeof ( data . visible ) !== "undefined" ? data . visible : true ; imageLayer . setOpacity ( visible ? + data . opacity : 0 ) ; return imageLayer ; }
read the Image Layer Data
@ignore
read the Image Layer Data