title: How to programmatically render an Openlayers map in Drupal 7
body: <p>My searching has turned up virtually nothing. All of the documentation I can find is for the Drupal 6 version. I need to figure out how to render an Openlayers map programmatically (using the <code>openlayers_render_map</code> function, I assume). Ultimately I want to create with the form API a map to select between multiple locations that match a search, so that I can get the canonical address and a WKT string describing the exact location.</p>
  
  <p>This is a rather open-ended question, and what I really want is a link to some well-written documentation. However, as I'm coming to the conclusion that no such thing exists, a more specific question would be: <strong>how do I design an Openlayers map in PHP code and render it in an arbitrary template?</strong> It will <em>not</em> display data stored in nodes, or even anywhere persistent at all, so using Views is <em>not</em> an option. Additionally, <strong>how can I begin to write Javascript that interacts with the map in order to select certain locations or retrieve the currently selected location?</strong></p>