I have the same question that a guy asked in stackoverflow, this is the question:

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 openlayers_render_map 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.

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: how do I design an Openlayers map in PHP code and render it in an arbitrary template? It will not display data stored in nodes, or even anywhere persistent at all, so using Views is not an option. Additionally, how can I begin to write Javascript that interacts with the map in order to select certain locations or retrieve the currently selected location?

Thanks in advance!

Comments

augustus.kling’s picture

Pol’s picture

Status: Active » Fixed
meustrus’s picture

Status: Fixed » Active
Pol’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.