Create a JavaScript object that can be inserted into a page as an include file. The object must inherit the Open Layers script object and override the click method for an icon placed on the map. Once captured, data would be retrieved from the associated tab delimited file and inserted into the DOM.
The implementation must mimic the users experience currently on Google maps, taking particular note of the following functionality:
• The bubble popup should dynamically re-sized based on the content
• The stalk of the bubble should make it very clear which icon it refers to (like Google)
• The bubble should be framed in grey (like Google)
• The appearance of a png image below the bubble to give the appearance of a shadow
• The ability to close the bubble by clicking on a X in the corner
• On user selection, if a part of the bubble is outside of the map area, in open layers the bubble is re-orientated, in Google the map is panned to accommodate.