﻿function load() {
    
    var newMap = new makeMap();    
    newMap.load(baltimoreWoods);
}

var baltimoreWoods = {
    mapCenter: {
        lat: 45.5961,
        lng: -122.7647
    },
    
    zoom: 15,
    
    markers: {
        midTrailSouth: {
            point: {
                lat: 45.5906,
                lng: -122.7614
            },
            
            view: {
                root: {
                    parentDiv: {
                        title: {},
                        titleTextNode: {},
                        picture: {},
                        caption: {
                            blurbTextNode: {}
                        }
                    }
                }
            },
            
            nodes: {
                parentDiv: {
                    tag: "div",
                    type: "element",
                    style: {
                        properties: {
                            backgroundColor: "#f1f5ef",
                            padding: "5px"
                        }
                    }
                },
                
                title: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "left",
                            width: "500px",
                            fontWeight: "bolder",
                            fontSize: "14px"
                        }
                    }
                },
                
                titleTextNode: {
                    type: "text",
                    text: "Baltimore Woods South View",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/baltimorewoods/midtrailsouth.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "Baltimore Woods looking south towards the St. Johns Bridge.",
                    noReference: {}
                }
            }
        },
        
        midTrailWest: {
            point: {
                lat: 45.5909,
                lng: -122.7618
            },
            
            view: {
                root: {
                    parentDiv: {
                        title: {},
                        titleTextNode: {},
                        picture: {},
                        caption: {
                            blurbTextNode: {}
                        }
                    }
                }
            },
            
            nodes: {
                parentDiv: {
                    tag: "div",
                    type: "element",
                    style: {
                        properties: {
                            backgroundColor: "#f1f5ef",
                            padding: "5px"
                        }
                    }
                },
                
                title: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "left",
                            width: "500px",
                            fontWeight: "bolder",
                            fontSize: "14px"
                        }
                    }
                },
                
                titleTextNode: {
                    type: "text",
                    text: "Baltimore Woods West View",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/baltimorewoods/midtrailwest.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "Baltimore Woods looking West out over the Willamette River.",
                    noReference: {}
                }
            }
        },
        
        midTrailNorth: {
            point: {
                lat: 45.5916,
                lng: -122.7624
            },
            
            view: {
                root: {
                    parentDiv: {
                        title: {},
                        titleTextNode: {},
                        picture: {},
                        caption: {
                            blurbTextNode: {}
                        }
                    }
                }
            },
            
            nodes: {
                parentDiv: {
                    tag: "div",
                    type: "element",
                    style: {
                        properties: {
                            backgroundColor: "#f1f5ef",
                            padding: "5px"
                        }
                    }
                },
                
                title: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "left",
                            width: "500px",
                            fontWeight: "bolder",
                            fontSize: "14px"
                        }
                    }
                },
                
                titleTextNode: {
                    type: "text",
                    text: "Baltimore Woods North View",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/baltimorewoods/midtrailnorth.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "Baltimore Woods looking North along N. Dacatur St.",
                    noReference: {}
                }
            }
        }
    }
}