﻿function load() {
    
    var newMap = new makeMap();    
    newMap.load(swanIsland);
}

var swanIsland = {
    mapCenter: {  
            lat: 45.5636,
            lng: -122.7105
    },
    
    zoom: 14,
    
    markers: {
        waudBluffTrail: {
            point: {
                lat: 45.5729,
                lng: -122.7213
            },
            
            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: "Waud Bluff Trail",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/swanisland/waudbluffTrailTop.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "This trail starts approximately at the intersection of N. Olin Ave and N. Willamette Blvd then drops down to Swan Island and feeds onto the cul-de-sac at the end of N. Basin Ave.  This trail has been assigned a project manager and preliminary design, outreach, etc. by the City Parks Bureau.  Construction is expected to begin in 2009.",
                    noReference: {}
                }
            }
        },
        
        futurePlans: {
            point: {
                lat: 45.5622,
                lng: -122.7062
            },
            
            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: "Swan Island Boat Ramp Spur",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/swanisland/futureplans.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "This small spur is to be continued across the lagoon to the river side trails. The Swan Island TMA has received from BES $250K for construction of sidewalk/trail segments between the river and lagoon",
                    noReference: {}
                }
            }
        },
        
        lagoonSide: {
            point: {
                lat: 45.5662,
                lng: -122.7126
            },
            
            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: "Lagoon Side Trail",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/swanisland/lagoonSideTrail.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "Depending on the placement of the Big Pipe the easement along the lagoon could be used as a river level portion of the greenway.",
                    noReference: {}
                }
            }
        },
        
        newestTrail: {
            point: {
                lat: 45.5533,
                lng: -122.6976
            },
            
            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: "Newest Swan Island Section",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/swanisland/newestTrailSection.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "The newest addition to the Swan Island trail network. Dedicated in 2006 and made of environmentally friendly porous concrete.",
                    noReference: {}
                }
            }
        },
        
        northEnd: {
            point: {
                lat: 45.5577,
                lng: -122.7105
            },
            
            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: "North End Riverside Trail",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/swanisland/northEndTrail.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "The Northern most point of the riverside trail also a great place to watch new barge launches.",
                    noReference: {}
                }
            }
        },
        
        cementRoad: {
            point: {
                lat: 45.5538,
                lng: -122.6958
            },
            
            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 from Swan Island",
                    noReference: {}                
                },
                
                picture: {
                    tag: "img",
                    type: "element",
                    style: {
                        properties: {
                            display: "block",
                            marginRight: "auto",
                            marginLeft: "auto"
                        }
                    },
                    properties: {
                        src: "images/swanisland/startCementRoad.jpg"
                    }
                },
                
                caption: {
                    tag: "p",
                    type: "element",
                    style: {
                        properties: {
                            margin: "0", 
                            padding: "2px",
                            textAlign: "center",
                            width: "500px"
                        }
                    }
                },
                
                blurbTextNode: {
                    type: "text",
                    text: "The start of the cement road leaving Swan Island.",
                    noReference: {}
                }
            }
        }
    }
}