I'm trying to add a leaflet map to a document dynamically. However, I'm running into a little trouble. Here's what I've got so far:
var mapEle,layoutMap;mapEle = document.createElement('div');mapEle.setAttribute("id", "mapPage");mapEle.setAttribute("class", "page...