var socket = io(); socket.on('connect', function () { console.log("connect!"); socket.emit("getmap", 100, 100); }); socket.on('getmap', function (conent) { var cssMap = conent["cssMap"]; var utilMap = conent["utilMap"]; //console.log(map); var domMap = $("#map"); domMap.empty(); for(var w=0;w'); } } for(var w=0;w'); } } } });