﻿function load() {
    
    var newMap = new makeMap();    
    newMap.load(albina);
}

var albina = {
    mapCenter: {  
            lat: 45.5461,
            lng: -122.6841
    },
    
    zoom: 15,
    
    markers: {
        albinaOverPass: {
            point: {
                lat: 45.5378,
                lng: -122.6757
            },
            
            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: "Albina Overpass",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/albina/albinaOverpass.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "The recently constructed Albina Overpass provides both bike lanes and wide sidewalks for pedestrians.",
                    noReference: {}
                }
            }
        },
        
        lowerAlbina: {
            point: {
                lat: 45.5389,
                lng: -122.6794
            },
            
            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: "Lower Albina",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/albina/lowerAlbina.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "Lower Albina looking down River St. towards Cargill Industries.",
                    noReference: {}
                }
            }
        },
        
        riverSt: {
            point: {
                lat: 45.5416,
                lng: -122.6842
            },
            
            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: "3px",
                            textAlign: "left",
                            width: "500px",
                            fontWeight: "bolder",
                            fontSize: "14px"
                        }
                    }
                },
                
                titleTextNode: {
                    type: "text",
                    text: "N. River St.",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/albina/riverSt.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "The Northern most portion of River St before the start of the cement road looking towards Ash Grove cement.  The Union Pacific railyards are on the right.",
                    noReference: {}
                }
            }
        },
        
        cementRoad: {
            point: {
                lat: 45.5501,
                lng: -122.6934
            },
            
            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: "Cement Road",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/albina/cementRoad.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "A portion of the cement road that runs between Swan Island a N. River St.",
                    noReference: {}
                }
            }
        }
    }
}